Dynamic array??


Closed Thread
Results 1 to 4 of 4

Thread: Dynamic array??

  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default Dynamic array??

    Hello,

    I will explain what I need and maybe what I am looking is not dynamic array (like c++)
    I have a counter which lets say might go up to 22 for example. On every one of those 22 count I need to keep a value, say voltage.

    Its easyto build up count (which starts at 0): count = count + 1
    Now what I want to do is voltage.count = voltage
    therefore I need to keep 22 voltage value in memory.

    thanks
    K

  2. #2
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    ooo I think I found it .. manual are helpful:
    Voltage_Array var bit[250]
    then
    Voltage_Array [counter here]

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


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    Ok,
    Now i am getting into my real programming. I want to keep a date and time in memory from the following command :
    I2CREAD SDA,SCL,$D1,$00,[STR DB0\8]

    so is the link you supplied me the best way to keep this time in memorry array ? I basically would need 2 array into one ...

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