SetMobileState()
Syntax
SetMobileState(#Mobile, State)Description
Changes the state of the specified mobile object.
Parameters
#Mobile The mobile object to use. State The new state value.
Return value
None.
Example
If ContainerMobile(#PB_Any, #PB_Mobile_Page, "padding:16px")
SwitchMobile(0)
Debug "Enabling the switch..."
SetMobileState(0, #True)
CloseMobileContainer()
EndIf
Procedure MobileEvents()
Select EventMobile()
Case 0
Debug "Switch state: " + GetMobileState(0)
EndSelect
EndProcedure
BindEvent(#PB_Event_Mobile, @MobileEvents())
See Also
GetMobileState()
Supported OS
All