help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

StrToBoolDef

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

Declaration

Source position: sysstrh.inc line 194

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

StrToBool

  

Convert a string to a boolean value

TryStrToBool

  

Try to convert a string to a boolean value

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505