Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TByteBoolHelper.ToString

Convert a ByteBool value to string.

Declaration

Source position: syshelph.inc line 1635

public class function TByteBoolHelper.ToString(

  const AValue: Boolean;

  UseBoolStrs: TUseBoolStrs = TUseBoolStrs.False

):string; overload;

function TByteBoolHelper.ToString(

  UseBoolStrs: TUseBoolStrs = TUseBoolStrs.False

):string; overload;

Description

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

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

The conversion is done using the BoolTostr function.

See also

BoolStrs

BoolToStr

  

Convert a boolean value to a string.


Documentation generated on: Nov 22 2024