Selecting a range within an array?

Glen Bojsza gbojsza at mac.com
Wed Apr 7 18:32:41 EDT 2004


Two things that I have noticed

given:

on mouseUp
   put 5 into ttt[1,1]
   put 7 into ttt[2,1]
   put 8 into ttt[3,1]
   put 9 into ttt[4,1]
   put keys of ttt
end mouseUp

the result of put keys of ttt

3,1
4,1
1,1
2,1

What constitutes this order?

How can I empty an array?


On Wednesday, April 7, 2004, at 04:36 PM, Dar Scott wrote:

>
> On Wednesday, April 7, 2004, at 03:18 PM, Glen Bojsza wrote:
>
>> I am trying to see how you can select a range  from an array...
>
> Build a new array by looping over the subscripts.  Skip empty values 
> in building the new array.  This is good for non-sparse or a little 
> bit sparse as in your example.
>
> If the array can be extremely sparse, don't do that, but loop over the 
> keys of the input array:  'repeat for each line in the keys of...'.
>
> Dar Scott
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list