FromString(value As String) As Boolean
Returns the value passed as a Boolean.
This method is shared.
This example sets a Value property of a CheckBox to True by passing the String True to the FromString function. This can be useful for setting Boolean values of classes such as CheckBox from Strings coming from files or databases.
CheckBox1.Value = Boolean.FromString("True")
ToString As Boolean
Returns the value as a string.
A Boolean is a variable that can have one of two values. In Xojo, the values are True or False. You can think of True as the equivalent of Yes or On, whereas False is equivalent to No or Off.
The VarType function returns 11 when passed a Boolean variable.
Declares a Boolean variable and sets its value to True:
Var isTaxable As Boolean isTaxable = True
The following statement disables a TextField:
TextField1.Enabled = False
All projects types on all supported operating systems.