Searching within array's


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52

    Default Searching within array's

    I need some help using array's more efficiently. The manual (PBP 2.6) has little information on practical usage of arrays though I have seen a few examples around the forum, but no references.

    I am receiving serial data into an array and I need to sort the reply (ASCII) into the different messages. Currently I use lots of IF.. THEN.. statements and am looking for something a little less cumbersome.

    Typical messages received:-
    OK!
    DONE
    !ERROR!
    0152:00000000
    015E:00012345
    all terminated with a carriage return.

    Any suggestions?
    Cheers,
    Tim.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Searching within array's

    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Re: Searching within array's

    This might be useful.
    http://www.picbasic.co.uk/forum/show...3401#post83401

    BR,
    -Gusse-

  4. #4
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Searching within array's

    That's what I was looking for, cheers. Out of interest, is there any documentation for this?

  5. #5
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Re: Searching within array's

    Quote Originally Posted by timmers View Post
    That's what I was looking for, cheers.
    That's good to hear.

    Quote Originally Posted by timmers View Post
    Out of interest, is there any documentation for this?
    Not really. Darrel's parser script combines several PBP commands together, in very smart way
    Script, itself, is quite self-explanatory. You might just need to add several similar scripts in parallel/series to get your work done.

    BR,
    -Gusse-

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts