Sign in Join
FPDoc Onlineexperiment

TLongBoolHelper.ToString function

Member of TLongBoolHelperpublicIn unit sysutils

Convert a LongBool value to string.

Declaration

pascal
class function ToString(const AValue: Boolean; 
 UseBoolStrs: TUseBoolStrs=TUseBoolStrs.False)
: string; overload; static
function ToString(UseBoolStrs: TUseBoolStrs=TUseBoolStrs.False): string
 ; overload

Description

ToString will, in the class method version, convert the AValue LongBool to a string representation. In the function method version the LongBool value itself ( Self) will be converted.

If the UseBoolStrs parameter equals TUseBoolStrs.True, then the string representation will use the LongBool strings BoolStrs. The default value for UseBoolStrs is TUseBoolStrs.False.

The conversion is done using the BoolTostr function.

See also

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