Sign in Join
FPDoc Onlineexperiment

TBooleanHelper.Parse function

Member of TBooleanHelperpublicIn unit sysutils

Convert string value to boolean value.

Declaration

pascal
class function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.