the long name of me OR the long ID of me?
Geoff Canyon
geoffc at inspiredlogic.com
Wed Jul 19 11:15:22 EDT 2006
On Jul 18, 2006, at 4:46 PM, Josh Mellicker wrote:
> To easily identify a specific control on a card in a stack, what
> method do you use?
I use the long id every time, because it's guaranteed unique.
This has sometimes caused problems, when the engine "helpfully" de-
references the long id, acting on the contents when I just want to
work with the actual id. It's been awhile since I had an issue like
that, but if I remember correctly I did something like this:
put (the long id of fld "test") & cr into tIDcr
Then I can do whatever I need to with tIDcr, and strip the cr from
the end when I need it as a long id.
Note the long id can also cause problems if the stack file name changes.
regards,
geoff
More information about the use-livecode
mailing list