Skip to main content

mobileControlTarget

Type​

function

Summary​

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

Syntax​

the mobileControlTarget
mobileControlTarget()

Description​

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.

note

In general, messages dispatched by the native control are sent to the object containing the script which created it.

Examples​

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

Value​

NameTypeDescription

return

The mobileControlTarget function returns the name or id (if no name is set) of the control.

command: mobileControlDelete, mobileControlDo, mobileControlSet, mobileControlCreate

function: mobileControlGet, mobileControls

Compatibility and Support​

Introduced

LiveCode 4.6

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?