Keep track of object type
Ken Ray
kray at sonsothunder.com
Sun Sep 28 21:54:01 EDT 2003
You don't want to use "me", you want to use "the target". And you don't
really even need to use "abbr name"; you can just say:
on mouseUp
put first word of the target into fld "Field 1"
end mouseUp
HTH,
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of
> Michael Young
> Sent: Sunday, September 28, 2003 8:50 PM
> To: use-revolution at lists.runrev.com
> Subject: Keep track of object type
>
>
> Hello,
>
> I can use snippet "abbr name of me" to learn an object type.
> But how can I keep track of the object type to use this
> information in a script located at the card object level
> rather than for example at the button object level?
>
> A concrete example of differences in button mouseup functioning:
>
> Button object script:
> on mouseup
> put first word of abbr name of me into fld "Field 1"
> end mouseup
>
> Field 1: button
>
> Card object script with no button object script on mouseup
> handler: on mouseup
> put first word of abbr name of me into fld "Field 1"
> end mouseup
>
> Field 1: card
>
> I have no problem with the Field 1 answers that I am getting,
> however I would like the Field 1 results in both situations
> to be button. How can I achieve that result?
>
> Thanks for your input,
>
> Michael
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-> revolution
>
More information about the use-livecode
mailing list