Basic Object Address Question
soapdog at mac.com
Tue Aug 23 10:06:37 CDT 2005
it's just a mistake, see that when you put the long name of a control
into a var, that variable also contains the type of control, it's a
complete reference. for example, on a newly created stack, the long
name of card 1 returns:
card id 1002 of stack "Untitled 1"
So if you put the long name of a control into a variable, when you're
using it, you don't need the control kind, so your example should be:
put the long name of card 1 into myCardName
put the name of control 1 of myCardName ....
On Aug 23, 2005, at 12:00 PM, David Burgun wrote:
> I am a bit confused, should the following code work?
> put the long name of card 1 into myCardName
> put the name of control 1 of card myCardName into myControlName
> I get an error when I try to do this and changed the code to:
> put the name of control 1 of card myCard of stack myStack into my
> Which is ok, but what I really want to be able to do is this:
> put long name of group myGroup into myGroupName -- String of
> something like "group x of group y of group z of card c of stack s"
> put the name of group myGroupName into myGroupName.
> Any Ideas?
> Thanks a lot
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode