Getting a field name

Klaus Major klaus at major-k.de
Sun Apr 4 06:33:31 EDT 2004


Hi Jim,

>> Here's my problem. A button handler in a palette stack reads:
>>
>> on mouseup
>>   answer "Click on the application field." with OK
>>   if it is empty then exit mouseUP
>>   wait until the mouseclick
>>   answer the clickstack --But I want the field name, not the stack 
>> name
>> end mouseup
>> ...
> (Assuming the controls don't overlap.)
>
> There must be a cleaner way.

Try:

...
answer the mousecontrol
## ;-)
...

and/or check "the mousecontrol" before asking.

Hope that helps...

> Jim

Regards

Klaus Major
klaus at major-k.de
www.major-k.de



More information about the use-livecode mailing list