Skip to content

TBooleanHelper.Parse

Convert string value to boolean value.

Declaration

Source position: syshelph.inc line 1581

public 
class function TBooleanHelper.Parse(const S: string) : Boolean;  static;

Description

Parse attempts to convert the string S to a boolean value. It uses the StrToBool function to perform the conversion.

Errors

If S does not contain a valid string representation, then an EConvertError exception is raised.

See also

Name Description
TBooleanHelper.TryToParse Try to convert a string to a boolean value.
TBooleanHelper.ToString Convert a boolean value to string.
TBooleanHelper.ToInteger Convert to an integer value.