IBX.IBScript.TIBSQLParser.OnParse

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnParse: TIBSQLParseStmt read FOnParse write FOnParse;

C++

__property TIBSQLParseStmt OnParse = {read=FOnParse, write=FOnParse};

Properties

Type Visibility Source Unit Parent
event published
IBX.IBScript.pas
IBX.IBScript.hpp
IBX.IBScript TIBSQLParser

Description

The OnParse event handler fires after processing an SQL statement.

When a statement is successfully parsed, the statement is sent to the OnParse event handler, including the SQL statement type and the statement itself.

For example, each time the OnParse event is fired, add a line to a TMemo:

procedure TForm1.IBSQLParser1Parse(Sender: TObject; AKind: TIBParseKind;
  SQLText: string);
begin
  Memo1.Lines.Add('Processing:'+ SQLText)
end;

The result is a list with the SQL statements without errors, which means that the parsing type can be identified.

See Also