GetQueryText 

Syntax:             BSTR GetQueryText ();

Return Value:    BSTR string object containing the text of the currently active SQL statement from the SQL pane.

Remarks:

Call this method to obtain the SQL query currently displayed in the SQL pane of ELS-QB control.

Note: GetQueryText () method is equivalent to GetSQLText ().

Example:

Since GetQueryText () and GetSQLText () are equivalent for the Sample of GetQueryText () usage see the Example of GetSQLText()