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

TStringHelper.ToBoolean

Convert string to boolean

Declaration

Source position: syshelph.inc line 73

public class function TStringHelper.ToBoolean(

  const S: string

):Boolean; overload;

function TStringHelper.ToBoolean: Boolean; overload;

Description

ToBoolean returns the contents of the string S as a boolean (if possible). It uses StrToBool to convert the value to a boolean.

Errors

If the string contains a value that cannot be translated to a boolean, an EConvertError exception may be raised.

See also

StrToBool

  

Convert a string to a boolean value

EConvertError

  

Conversion error.

TStringHelper.ToDouble

  

Convert string to double-sized floating point value

TStringHelper.ToExtended

  

Convert string to extended-sized floating point value

TStringHelper.ToInt64

  

Convert string to 64-bit signed integer

TStringHelper.ToInteger

  

Convert string to 32-bit signed integer

TStringHelper.ToSingle

  

Convert string to single-sized floating point value


Documentation generated on: Sep 28 2017