iOSSwitch.ValueChanged

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
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