User Tools

Site Tools


api:dk11:delphi:gisinternals.strtoboolean_string_boolean

Table of Contents

StrToBoolean method

DK11 for Delphi | GisInternals.StrToBoolean | Enums | Fields | Methods | Types

Convert, YES, NO, TRUE, FALSE, 1, 0 to a boolan value.

Syntax

// Delphi
function StrToBoolean(
  const _value : String;
  const _default : Boolean
) : Boolean;
// C++ Builder
extern DELPHI_PACKAGE bool StrToBoolean(
  const UnicodeString _value,
  const bool _default
);

Parameters

Name Type Description
_value String value to be converted
_default Boolean default value if provided value is empty or unrecognized

Result

Type Description
Boolean Booelan value.
2018/08/11 01:13