Identifying variables

Richard Gaskin ambassador at fourthworld.com
Wed May 14 13:07:01 EDT 2003


Barry Levine wrote:

> I have three variables - let's use A, B, and C - that contain whole
> numbers anywhere from 0 to 5; it is probably that at least two of the
> vars will contain identical numbers. I sort them descending using:
> 
> put A,B,C into theVars
> sort items of theVars desending numeric
> 
> 
> Now the three vars can be in any order. How do I know which var is now
> first in the order? In the case of two vars containing the same number,
> one of them will be first (and I don't care which so the sort order is
> fine). I have no trouble determining the contents of the var but I need
> to know the NAME of the var because other things have to happen after
> this that depend of which var is the first.

See the variableNames function.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list