PgDAC
Used to get the start position of the current statement in a script.
TDAScript
property StartPos: Int64;
Use the StartPos property to get the start position of the current statement (the position of the first statement character) in a script.