returning result from a function when the number of items in the result varies
Stephen Barncard
stephenREVOLUTION2 at barncard.com
Sun Sep 21 12:34:35 EDT 2008
The results in examples 1 and 2 were incorrect.
put myArray [1] & return into toadMeatList
put myArray [2] & return after toadMeatList
put myArray [5] after toadMeatList
RESULTS-->
Jefferson
Washington
Elvis
or in a "regular" loop
put "1,2,5" into orderList
repeat with n = 1 to numLines
put myArray[n] & return after toadMeatList
end repeat
RESULTS-->
Jefferson
Washington
Elvis
>It's not a list! It's an array.
>
>It's not THE NUMBER OF LINES in myArray.
>it's the number of lines in the KEYS of myArray. Big difference.
>I'll build a silly array here:
>
_______________________________________________
--
stephen barncard
s a n f r a n c i s c o
- - - - - - - - - - - -
More information about the use-livecode
mailing list