customKeys and how to address them

Klaus Major klaus at major-k.de
Sat Jul 10 06:56:14 EDT 2004


Hi Barry,

> Devin,
>
> Thanks for the assistance. I'm reproducing the few script lines that I 
> found
> demonstrate the basic concept (in case there are others here who are as
> bamboozled as I was):
>
> get line 2 of the customKeys of fld 1
> put "answer the "& it &" of fld 1" into thePhrase
> do thePhrase

Here you can omit the last line!

...
get line 2 of the customKeys of fld 1
answer the it of fld 1
...


Looks like IT is the only variable that is being resolved in this 
case...(?)

Or does anybody know how to access CPsets/arrays without knowing either
the arrayname nor the keyname?

Something like:

put line 1 of fld 2 into array_name
put line 3 of fld 5 into key_name

put the array_name[key_name] of this stack
...

Know what i mean?

Right now i am using IT e.g. in a repeat loop...
OK, is fast enough anyway... ;-)



Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list