FireDAC.Stan.Param.TFDParams.Prepare
Delphi
procedure Prepare(ADefaultDataType: TFieldType; ADefaultParamType: TParamType);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| procedure | public | FireDAC.Stan.Param.pas | 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.