Parse(Value: String): Boolean;
Value. The string, which must be converted into logical data type.
The Parse method returns logical value obtained during conversion of a string value passed as the Value input parameter.
The following values can be specified as value of the Value parameter:
True. To get the logical True.
False. To get the logical False.
The method generates an exception for the rest of values of the Value parameter.
Sub UserProc;
Var
s: String;
b: Boolean;
Begin
s := "True";
b := Boolean.Parse(s);
End Sub UserProc;
After executing the example the "b" variable contains the logical True obtained by converting from the specified string value.
See also: