"repeat for each" in reverse order ?

Dar Scott dsc at swcp.com
Sat Jun 25 14:35:09 EDT 2005


On Jun 25, 2005, at 3:04 AM, jbv wrote:

> Is there a way to use
> "repeat for each element thisIndexTerm in listOfTerms"
> in reverse order, like in
> "repeat with i=number of items of myVar down to 1" ?

I don't think there is an order in 'repeat for each element'.  I think 
the elements are processed in some seemingly arbitrary order.  In any 
case...

You can get the keys of the array and sort them in the order you want 
and then loop through the keys with 'repeat for each line'.

Dar

-- 
**********************************************
     DSC (Dar Scott Consulting & Dar's Lab)
     http://www.swcp.com/dsc/
     Programming and software
**********************************************




More information about the use-livecode mailing list