I just send the ID of the sending object as a parameter. Sent from my iPhone
On May 24, 2017, at 1:58 PM, hh via use-livecode <use-livecode@lists.runrev.com> wrote: >> Alejandro T. wrote: >> Reading LiveCode Dictionary about the target and send, >> could not find an obvious way to get the name of a message >> sender without putting first this name in another container >> (a custom property, a field or a global variable). > > Yet another option could be to use more parameters: > -- b is the button number (obligatory) > -- [b may be also misused for any positive integer] > -- clicking the control with that handler leaves x empty > on mouseUp b,x > switch x > case ... > break > case ... > ... > default -- x is empty > -- the direct-click code, use b > end switch > end mouseUp > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode