Getting the type of a control
Jeanne A. E. DeVoto
jeanne at runrev.com
Tue Nov 5 00:42:01 EST 2002
At 4:15 AM -0800 11/4/02, Ben Rubinstein wrote:
>Is there a clean way to get the type of a control?
>...but I can't see anything to return the type. The workaround I've found
>is to get first word of the long name - but that seems like a hack.
That's the only way to do it that I know of.
The first word of the long name of a control will always report the object
type, unless the stack's hcAddressing is true. In that case, you need the
second word (the first word is "card" or "background" if the hcAddressing
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
More information about the Use-livecode