Structured Array


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: Structured Array

    I think that what you are trying to do is already done.
    not really

    you would need to name every element
    eg bat1-drive ,bat1-current.............
    bat2-drive..................
    thats 50 named vars
    and how can you step through them in a loop ?
    my way
    for i= 0 to 10
    array_get i,volts,j
    array_get i,amps,k
    array_get i,drive,l
    serout x,y,z ["in some nice format" , j, k, l,/n]
    next
    simple clean easy to read
    Last edited by richard; - 29th March 2016 at 11:23. Reason: typo again ,i can't even cut and paste

Similar Threads

  1. Copying Array to Array
    By vamtbrider in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th April 2010, 02:12
  2. Array and IF - THEN
    By Gusse in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th February 2010, 13:52
  3. Custom array of ports using array?
    By blainecf in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 18th June 2006, 02:43
  4. Array
    By ripmax in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th March 2006, 23:21
  5. Word array behaving like byte array.... wierd
    By forgie in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 2nd August 2005, 16:43

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