API:IBX.IBQuery.TIBQuery.Params

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Params: TParams read GetParams write SetParamsList stored False;

C++

__property Data::Db::TParams* Params = {read=GetParams, write=SetParamsList, stored=false};

Properties

Type Visibility Source Unit Parent
property published
IBX.IBQuery.pas
IBX.IBQuery.hpp
IBX.IBQuery TIBQuery

Description

Specifies the parameters to use for any parameterized queries.

IBX.IBQuery.TIBQuery.Params inherits from IBX.IBCustomDataSet.TIBCustomDataSet.Params. All content below this line refers to IBX.IBCustomDataSet.TIBCustomDataSet.Params.

Specifies the parameters to use for any parameterized queries.

Use Params to set up the parameters for the SQL object specified by the QSelect property. Params is the same as the SQLParams property.

For example:

 DataSet1.Params[0].AsInteger := 24;   //Delphi
 DataSet1.Params.ByName['Field2'].AsString := 'foo';
 DataSet1->Params->Items[0]->AsInteger = 24;   //C++
 DataSet1->Params->ByName["Field2"]->AsString = "foo";