System.SysUtils.FalseBoolStrs

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

FalseBoolStrs: array of String;

C++

extern DELPHI_PACKAGE System_Sysutils__75 FalseBoolStrs;

Properties

Type Visibility Source Unit Parent
variable public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Lists strings that can represent the Boolean value of False.

FalseBoolStrs is an array of strings that is used in conversions between Boolean values and strings.

When using the BoolToStr function, False values are converted to the first string in the list.

When using the StrToBool function, any string found in the list, regardless of case, is converted to False. If no string match is found, TrueBoolStrs is checked, and True is returned if a match is found. The EConvertError exception is thrown if there are no matches.


Note: The initial length of FalseBoolStrs is 0. Modify the length and then populate the array with strings.

Note: The FalseBoolStrs variable is undefined when an application starts. Any use of StrToBool, BoolToStr, or TryStrToBool will cause this variable to be initialized with the default value of 'False'.

See Also