Sign in Join
FPDoc Onlineexperiment

TFPExpressionScanner.Pos property

Member of TFPExpressionScannerpublicIn unit fpExprPars

Current position in the source string

Declaration

pascal
property Pos: Integer read FPos;

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.