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

StrToInt64

Convert a string to an Int64 value.

Declaration

Source position: sysstrh.inc line 121

function StrToInt64(

  const s: String

):Int64;

Description

StrToInt64 converts the string S to a Int64 value, and returns this value. The string can only contain numerical characters, and optionally a minus sign as the first character. Whitespace is not allowed.

Hexadecimal values (starting with the $ character) are supported.

Errors

On error, a EConvertError exception is raised.

See also

TryStrToInt64

  

Try to convert a string to an int64 value, and report on success.

StrToInt64Def

  

Convert a string to an Int64 value, with a default value

StrToInt

  

Convert a string to an integer value.

TryStrToInt

  

Try to convert a string to an integer, and report on success.

StrToIntDef

  

Convert a string to an integer value, with a default value.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.