Basic Object Address Question

Andre Garzia soapdog at mac.com
Tue Aug 23 11:06:37 EDT 2005


Dave,

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 ....


See?

Cheers
andre


On Aug 23, 2005, at 12:00 PM, David Burgun wrote:

> Hi,
>
>
> 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  
> ControlName
>
> 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
> Dave
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list