Data.Win.ADODB.TParameters.ParseSQL

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TParameters

Delphi

function ParseSQL(const SQL: WideString; DoCreate: Boolean): WideString;

C++

System::WideString __fastcall ParseSQL(const System::WideString SQL, bool DoCreate);

Description

Parses an SQL statement for parameters and TParameter objects.

Call ParseSQL to parse an SQL statement for parameters. For each parameter found in the SQL statement, a TParameter object is added to the calling TParameters object using the name of the parameter in the SQL statement.

SQL contains the SQL statement to parse.

DoCreate indicates whether to clear all existing parameter definitions before parsing the SQL statement.

ParseSQL returns a parsed version of the SQL statement specified in the SQL parameter.



ADOQuery1.Parameters.ParseSQL(ADOQuery1.Text, True);



ADOQuery1->Parameters->ParseSQL(ADOQuery1->Text, true);