Variables

Monte Goulding monte at sweattechnologies.com
Sun Apr 11 20:33:24 EDT 2004


>
> Hi,
>
> I am having trouble with stuff
>
> If I say:
>
> put button ID 1004 into gVar
>
> it appears to be accepted.

Yes it will be but the engine assumes you mean put the text of btn id 1004
into gVar. If you want an object reference then the best one is:
put the long id of btn ID 1004 into gVar

> I want to say something like: 	set the backgroundColor of
> gArray[3][7]
> to "green"

We currently don't have tru multidimensional arrays either but you can use
the following syntax to build your array:

put the long id of btn ID 1004 into gArray[1,1]
set the backgroundColor of gArray[1,1] to "green"

Cheers

Monte



More information about the use-livecode mailing list