From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aiOSSwitch.Value = newBooleanValue
BooleanValue = aiOSSwitch.Value

Supported on Mobile (iOS).

The value of the switch. On = True, Off = False.

Sample Code

If the Tax switch is on, then set the tax rate:

Var tax As Currency
If TaxSwitch.Value Then
tax = 0.08
End If