Basic question about behaviors

Paul Hibbert paul at
Tue Aug 25 23:03:16 EDT 2020

Bill, try this in the behaviour button script:

on mouseUp
  put the long name of this me into theName  —theName will contain the long name of the behaviour button.
end mouseUp

put this me into theName - would put the value contained in the text property of the behaviour button into theName. In standard, default and rectangle buttons we don’t normally use the text property, but there’s nothing stopping you from using it if you wish, you just need to populate it first. :)


> On 25Aug, 2020, at 15:48, William Prothero via use-livecode <use-livecode at <mailto:use-livecode at>> wrote:
> on mouseUp
>   put  this me into theName  —theName is blank.
> end mouseUP

More information about the use-livecode mailing list