Skip to content

TBooleanHelper

Helper for the Boolean type.

Declaration

Source position: syshelph.inc line 1579

type

  TBooleanHelper = type helper for Boolean
  public
    class function Parse : Boolean;
    class function Size : Integer;
    class function ToString(const AValue: Boolean; 
                       UseBoolStrs: TUseBoolStrs=TUseBoolStrs.False)
                        : string; overload;
    function ToString(UseBoolStrs: TUseBoolStrs=TUseBoolStrs.False) : string; overload;
    class function TryToParse : Boolean;
    function ToInteger : Integer;
  end;

Inheritance

Description

TBooleanHelper is a helper type for the Boolean type. It contains mostly conversion routines to and from other types.

Methods

Member Visibility Description
Parse public Convert string value to boolean value.
Size public Return the size (in bytes) of the.
ToInteger public Convert to an integer value.
ToString public Convert a boolean value to string.
TryToParse public Try to convert a string to a boolean value.

See also

Name Description
TStringHelper Helper type for strings.
TShortIntHelper Helper for a ShortInt-typed ordinal value.
TSmallIntHelper Helper for a SmallInt-typed ordinal value.
TWordHelper Helper for a Word-typed ordinal value.
TCardinalHelper Helper for a Cardinal-typed ordinal value.
TIntegerHelper Helper for a Integer-typed ordinal value.
TInt64Helper Helper for a Int64-typed ordinal value.
TQWordHelper Helper for a QWord-typed ordinal value.
TNativeIntHelper Helper for a NativeInt-typed ordinal value.
TByteHelper Helper for a byte-typed ordinal value.
TByteBoolHelper Helper for the ByteBool type.
TWordBoolHelper Helper for the WordBool type.
TLongBoolHelper Helper for the LongBool type.