[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)


Convert a WordBool value to string.


Source position: syshelph.inc line 602

public class function TWordBoolHelper.ToString(

  const AValue: Boolean;

  UseBoolStrs: TUseBoolStrs = TUseBoolStrs.False

):string; overload;

function TWordBoolHelper.ToString(

  UseBoolStrs: TUseBoolStrs = TUseBoolStrs.False

):string; overload;


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

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

The conversion is done using the BoolTostr function.

See also




Convert a boolean value to a string.

Documentation generated on: Sep 28 2017