Simple array question
Mark Brownell
gizmotron at earthlink.net
Thu Sep 30 18:50:01 EDT 2004
On Thursday, September 30, 2004, at 02:48 PM, Jim Hurley wrote:
> repeat with i = 1 to m
> put x[i] into line i of tResults
> end repeat
> put tResults into field 2
>
>
> But is there any quick way to get the list sorted by the keys? I have
> 11,000 elements in the array.
>
> Jim
Maybe by using a faster repeat loop and a simpler append technique.
put "" into tResults
put 1 into i
repeat
put x[i] & return after tResults
if x[i] = empty then exit repeat
add 1 to i
end repeat
put tResults into field 2
This is not sorting, I guess.
Mark
More information about the use-livecode
mailing list