Skip to content

TParser.TokenInt

Returns the current token as an integer.

Declaration

Source position: classesh.inc line 1826

public 
  function TokenInt : Int64;

Description

If current token type is toInteger , this method returns the token value as an integer.

In the input stream an integer can be an hexadecimal (prefixed by '$' character) or decimal number. Decimal numbers can be prefixed by an unary minus: if this is the case, no space must exist between minus and number.

Errors

If Token isn't toInteger , an EConvertError exception is raised.

See also

Name Description
toInteger Value returned by TParser.Token when an integer was found in the input stream.
TParser.NextToken Reads the next token and returns its type.
TParser.Token The type of the current token.