SetMobileAttribute()
Syntax
SetMobileAttribute(#Mobile, Attribute$, Value$ [, Item])Description
Changes the attribute value of the specified mobile object.
Parameters
#Mobile The mobile object to use. Attribute$ The attribute to set. Raw HTML attribute can be specified as well (for example: "style", "value" etc.). Value$ The new attribute value to set. Item (optional) The mobile gadget item to set the attribute. It only works with TabBarMobile() for now.
Return value
None.
Example
If ContainerMobile(#PB_Any, #PB_Mobile_Page) ButtonMobile(0, "Hello World") SetMobileAttribute(0, "style", "margin:50px;") ; Set a 50px margin around the button Debug GetMobileAttribute(0, "style") CloseMobileContainer() EndIf
See Also
GetMobileAttribute()
Supported OS
All