<doc>
	<legacy_id></legacy_id>
	<name>mobileControlTarget</name>
	<type>function</type>

	<syntax>
		<example>the mobileControlTarget</example>
		<example>mobileControlTarget()</example>
	</syntax>

	<synonyms>
		<synonym>iphoneControlTarget</synonym>
	</synonyms>

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

	<examples>
<example>put mobileControlTarget() into tTarget</example>
<example><p>if mobileControlTarget() is "myControl" then</p><p>  ...</p><p>end if</p></example>
	</examples>

	<history>
		<introduced version="4.6">Added</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		<changed version="5.5">Changed iphoneControlTarget t -&gt; mobileControlTarget and added android support</changed>
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
		<iosScroller/>
		<iosBrowser/>
		<iosPlayer/>
		<iosTextInput/>
		<AndroidBrowser/>
	</objects>

	<platforms>
		<ios/>
		<android/>
	</platforms>

	<classes>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
	</classification>

	<references>
		<function tag="mobileControls">mobileControls Function</function>
		<function tag="mobileControlGet">mobileControlGet Function</function>
		<command tag="mobileControlCreate">mobileControlCreate Command</command>
		<command tag="mobileControlDelete">mobileControlDelete Command</command>
		<command tag="mobileControlDo">mobileControlDo Command</command>
		<command tag="mobileControlSet">mobileControlSet Command</command>
	</references>

	<description>
	<overview>While in the context of a message that has been dispatched from a native mobile control created using <command tag="mobileControlCreate">mobileControlCreate</command>, you can use the <b>mobileControlTarget</b> function to fetch the name or id (if no name is set) of the control that sent the message.</overview>

		<parameters>
		</parameters>

	<value>The <b>mobileControlTarget</b> function returns the <i>name</i> or <i>id</i> (if no name is set) of the control.</value>
	<comments><note> </note>In general, messages dispatched by the native control are sent to the object containing the script which created it.</comments>
	</description>
</doc>