iOSSwitch.ValueChanged

From Xojo Documentation

Event


iOSSwitch.ValueChanged()

Supported on Mobile (iOS).

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

Sample Code

Disable an iOSTextField when the switch is off and enable it when on:

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