Boolean.Parse

Syntax

Parse(Value: String): Boolean;

Parameters

Value. The string, which must be converted into logical data type.

Description

The Parse method returns logical value obtained during conversion of a string value passed as the Value input parameter.

Comments

The following values can be specified as value of the Value parameter:

The method generates an exception for the rest of values of the Value parameter.

Example

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:

Boolean