Sign in Join
FPDoc Onlineexperiment

TLongBoolSysHelper.ToString function

Member of TLongBoolSysHelperpublicIn unit syshelpers

Boolean type helper for customizable boolean string representation.

Declaration

pascal
class function ToString(const aValue: Boolean; const aTrueStr: string; 
 const aFalseStr: string; 
 const aCharsCase: TStringCaseFormat=scfUnchangedCase)
: string; overload; static
function ToString(const aBitFormatSettings: TBitFormatSettings; 
 const aCharsCase: TStringCaseFormat=scfUnchangedCase)
: string; overload
function ToString(const aTrueStr: string; const aFalseStr: string; 
 const aCharsCase: TStringCaseFormat=scfUnchangedCase)
: string; overload
function ToString(const aCharsCase: TStringCaseFormat=scfUnchangedCase)
: string; overload

Arguments

aValue

Boolean value that will be converted to string.

aTrueStr

Custom string used for representation of boolean TRUE state.

aFalseStr

Custom string used for representation of boolean FALSE state.

aCharsCase

Optional string casing.

aBitFormatSettings

Record holding custom strings for boolean to string conversion.

Function result

Helper function result string.

Description

Convert LongBool type value to string using localized custom formatting.

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