Sign in Join
FPDoc Onlineexperiment

StrToBoolDef function

In unit sysutils

Convert string to boolean value, returning default in case of error.

Declaration

pascal
function StrToBoolDef(const S: string; Default: Boolean): Boolean

Description

StrToBoolDef tries to convert the string S to a boolean value, and returns the boolean value in case of success. In case S does not contain a valid boolean string, Default is returned.

See also

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