Getting the long name(or ID) of a control

Monte Goulding monte at appisle.net
Wed Jan 27 00:14:09 EST 2016


Yes menu is a keyword. The rest is just what the parser can and can’t cope with.

> On 27 Jan 2016, at 4:04 PM, Ralph DiMola <rdimola at evergreeninfo.net> wrote:
> 
> Riddle me this Batman:
> 
> I have 2 controls named "F1"(field) and "menu"(button) both in a group named
> G1
> 
> Why does this work...????
> put "F1" into somevar
> put the long name of control somevar into someothervar
> 
> But this does not work...
> put "F1 of group G1" into somevar
> put the long name of control somevar into someothervar
> 
> This works....
> put "F1 of group G1" into somevar
> put the long name of ("control"&&somevar) into someothervar
> 
> This also works....
> put "F1" into somevar
> put the long name of ("control"&&somevar) into someothervar
> 
> But this does not
> put "menu of group G1" into somevar
> put the long name of ("control"&&somevar) into someothervar
> 
> But this does
> put quote&"menu"&quote&&"of group G1" into somevar
> put the long name of ("control"&&somevar) into someothervar
> 
> And this works
> put "menu" into somevar
> put the long name of control somevar into someothervar
> 
> Menu seems to be a keyword or something. What am I missing? Should there
> always be quotes around control names? (banging head against wall)
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list