MobileSwitch.ValueChanged

From Xojo Documentation

Event


MobileSwitch.ValueChanged()

New in 2020r2

Supported on Mobile.

Called when the value property is changed either by code or by the user.

Sample Code

Disable a MobileTextField when the switch is off and enable it when on:

If Me.Value Then
MyTextField.Enabled = True
Else
MyTextField.Enabled = False
End If