Question about ARRAYWRITE


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    ok, but what is that doing? Once the array is written, and presumably saved for some time, don't I have to use ARRAYREAD to read it back into a variable to then use it? You are showing me that the message is proper, but I'm not proving a READ. WHAT IS THAT 0 FOR???????
    Last edited by circuitpro; - 30th July 2010 at 05:23.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by circuitpro View Post
    ok, but what is that doing?
    It's writing string data to an Array, then sending it out using DEBUG.

    Once the array is written, and presumably saved for some time, don't I have to use ARRAYREAD to read it back into a variable to then use it?
    No, once it's in the array it's ready to send.
    You would only need to use ARRAYREAD if string data had been received.

    WHAT IS THAT 0 FOR???????
    The 0 terminates the string.
    When using DEC, HEX, BIN etc. The length of the string is not constant, and you have to mark the end so PBP can find it.
    The STR operator in the DEBUG statement will stop sending data from the array when it encounters a 0.
    DT

  3. #3
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    ouch, that hurts!

Members who have read this thread : 0

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