IBX.IBScript.TIBSQLParser.CurrentLine

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property CurrentLine: Integer read LineIndex;

C++

__property int CurrentLine = {read=LineIndex, nodefault};

プロパティ

種類 可視性 ソース ユニット
property public
IBX.IBScript.pas
IBX.IBScript.hpp
IBX.IBScript TIBSQLParser


説明

CurrentLine プロパティは整数で、TIBSQLParser で処理されている現在行のナンバーを示します。

解析プロセスの間、解析されているスクリプトの現在行がどれか分かると便利です。

たとえば、CurrentLine プロパティを導入して、OnError イベント ハンドラを発生させたエラー箇所の行を、迅速に識別することができます。

procedure TForm2.IBSQLParser1Error(Sender: TObject; Error, SQLText: string;
  LineIndex: Integer);
begin
  Memo1.Lines.Add(IBSQLParser1.CurrentLine.ToString() + ' : ' + 'Error:' + Error + ' - ' + SQLText);
end;

関連項目