IBX.IBScript.TIBSQLParser.CurrentLine
Delphi
property CurrentLine: Integer read LineIndex;
C++
__property int CurrentLine = {read=LineIndex, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | IBX.IBScript.pas IBX.IBScript.hpp |
IBX.IBScript | TIBSQLParser |
Description
The CurrentLine property is an integer that shows the number of the current line being processed using TIBSQLParser.
During the parsing process, it can be useful to know the current line of the script that is being parsed.
For example, introduce the CurrentLine property to quickly identify the line where an error occurred that triggered the OnError event handler.
procedure TForm2.IBSQLParser1Error(Sender: TObject; Error, SQLText: string;
LineIndex: Integer);
begin
Memo1.Lines.Add(IBSQLParser1.CurrentLine.ToString() + ' : ' + 'Error:' + Error + ' - ' + SQLText);
end;