Livecode Wiki
Advertisement

Fetches the name or id (if no name is set) of the native mobile control that sent the message.Syntax:

mobileControlTarget()

Examples:

put mobileControlTarget() into tTarget
if mobileControlTarget() is "myControl" then
  ...
end if

While in the context of a message that has been dispatched from a native mobile control created using mobileControlCreate, you can use the mobileControlTarget function to fetch the name or id (if no name is set) of the control that sent the message.

In general, messages dispatched by the native control are sent

to the object containing the script which created it.

See also: mobileControlSet (command),mobileControlCreate (command),mobileControlGet (function),mobileControls (function),

Advertisement