TatScript.GetRowColFromSource Method
Converts a character position in the flat source string to its corresponding row and column values.
Remarks
Use GetRowColFromSource to retrieve the row and column values of a specified position in the source code. The position is provided in APos variable, and is considered as if the source code was a single string, including special characters like #13 and #10. The calculated row and column values are set in row and col parameters.
Syntax
Unit: atScript
procedure TatScript.GetRowColFromSource(APos: Integer; var row: Integer; var col: Integer);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| APos | Integer | ||
| var | row | Integer | |
| var | col | Integer |