IBX.IBScript.TIBSQLParser.OnError
Delphi
property OnError: TIBSQLParseError read FOnError write FOnError;
C++
__property TIBSQLParseError OnError = {read=FOnError, write=FOnError};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | IBX.IBScript.pas IBX.IBScript.hpp |
IBX.IBScript | TIBSQLParser |
Description
The OnError event handler fires after processing an SQL statement and not identifying the parsing type.
When an error occurs after parsing a statement, the OnError event handler is called including the error and the statement itself. A parsing error means that the parsing type cannot be identified.
For example, each time the OnError event is fired, add a line to a TMemo:
procedure TForm1.IBSQLParser1Error(Sender: TObject; Error, SQLText: string;
LineIndex: Integer);
begin
Memo1.Lines.Add('Error:' + Error + ' - ' +SQLText);
end;
The result is a list with all the SQL statements whose command type cannot be identified.