IBX.IBScript.TIBSQLParser.Paused
Delphi
property Paused: Boolean read FPaused write SetPaused;
C++
__property bool Paused = {read=FPaused, write=SetPaused, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | IBX.IBScript.pas IBX.IBScript.hpp |
IBX.IBScript | TIBSQLParser |
Description
Use the Paused property to stop the parsing process.
Set the Paused property to True
to stop the parsing process. The default value is set to False
which means that, after calling the Parse method, all the statements are parsed continuously.
For example, you can stop the parsing process after an error triggers the OnError event handler.
procedure TForm1.IBSQLParser1Error(Sender: TObject; Error, SQLText: string;
LineIndex: Integer);
begin
Memo1.Lines.Add('Error:'+ Error+' - '+SQLText); //Adds the error and the SQL statement to a TMemo.
IBSQLParser1.Paused := True; // Pauses the parsing process.
end;
The possibility of pausing the process can be interesting if you need to take an action after an error, for example.