Boolean.FromString

From Xojo Documentation

Method

FromString(value As String) As Boolean

New in 2020r1

Supported for all project types and targets.

Returns the value passed as a Boolean.

Notes

If the value is "True", then True is returned, otherwise the False is returned.

Sample Code

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")

See Also

ToString method.