Skip to content

TFPExpressionScanner.Pos

Current position in the source string

Declaration

Source position: fpexprpars.pp line 89

public property Pos: Integer;

Description

This read-only property returns the current character position within the source expression string during scanning. The position starts at 1 (first character) and advances as tokens are extracted.

The position value is useful for error reporting and debugging, as it indicates exactly where in the expression the scanner is currently located or where an error occurred during tokenization.