Using numbers to access elements in arrays
Mark Brownell
gizmotron at earthlink.net
Thu Aug 7 11:51:00 EDT 2003
On Thursday, August 7, 2003, at 08:48 AM, Devin Asay wrote:
> What SEEMS to be happening--I'm still trying to pin it down--is that
> the revExecuteSQL command is grabbing elements from the array in the
> order in which they were created--traditional array
> behavior--regardless of the key names (which happen to be numerals)
> that I assigned to them earlier. So what ends up in the table is in
> this order:
>
> stuff junk nonsense fluff rubbish
You might try pre-populating the array with empty space elements before
loading it. This might preset an order that will be retained.
repeat with i = 1 to 50
put " " into myArray[i]
end repeat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 684 bytes
Desc: not available
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030807/07030f53/attachment.bin>
More information about the use-livecode
mailing list