unique id numbers
Wouter
wouter.abraham at pi.be
Wed Jun 30 09:01:16 EDT 2004
A follow up for those who are interested.
Some controls can have 2 unique id if "0" is also considered an unique
id.
Returning an <id 0> on a <put long id of control x of card y of stack
z> was only encountered in stack "revPropertyPalette 1" but....
try this in whatever stack:
put the long id of control id 0 <of whatever stack is open>
or
put the long id of btn id 0 <of whatever stack is open> (if the
card contains a button of course)
etc..
For a test on stack "revPropertyPalette 1":
put the long id of button "ItemText" of group "MenuSaveOptions"
of group "Save options" of card "revdatabaselinkedmenu" of stack
"revPropertyPalette 1"
if the result is:
button id 0 of group id 0 of group id 46116 of card id 46117 of
stack "revPropertyPalette 1"
then
go card id 46117 of stack "revPropertyPalette 1"
and try again:
put the long id of button "ItemText" of group "MenuSaveOptions"
of group "Save options" of card "revdatabaselinkedmenu" of stack
"revPropertyPalette 1"
the result is:
button id 46258 of group id 46257 of group id 46116 of card id
46117 of stack "revPropertyPalette 1"
then try :
put the long name of button id 0 of group id 46257 of group id
46116 of card id 46117 of stack "revPropertyPalette 1"
and
put the long name of button id 0 of group id 0 of group id 46116
of card id 46117 of stack "revPropertyPalette 1"
only
put the long name of button id 46257 of group id 0 of group id
46116 of card id 46117 of stack "revPropertyPalette 1"
will give an error
Whenever an <id 0> is encountered a workaround is needed.
Greetings,
WA
More information about the use-livecode
mailing list