FireDAC.Stan.Param.TFDParams.Prepare
Delphi
procedure Prepare(ADefaultDataType: TFieldType;
ADefaultParamType: TParamType);
C++
void __fastcall Prepare(Data::Db::TFieldType ADefaultDataType, Data::Db::TParamType ADefaultParamType);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FireDAC.Stan.Param.pas FireDAC.Stan.Param.hpp |
FireDAC.Stan.Param | TFDParams |
Description
Prepares the parameters.
Prepare prepares the list of parameters as follows:
- If the data type of a parameter is
ftUnknown
, it changes toADefaultDataType
. - If the parameter type of a parameter is
ptUnknown
, it changes toADefaultParamType
. - If the size of a parameter is a negative value, it changes to 0.
- If the bind mode of the list of parameters is
pbByName
, but there are parameters that do not have a name, Prepare changes the bind mode topbByNumber
. - If the bind mode is
pbByNumber
, but there are parameters that do not have a position, Prepare sets the value of their Position property to the position that they hold in the list of parameters.