FireDAC.Stan.Param.TFDParams.Prepare

From RAD Studio API Documentation
Jump to: navigation, search

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 to ADefaultDataType.
  • If the parameter type of a parameter is ptUnknown, it changes to ADefaultParamType.
  • 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 to pbByNumber.
  • 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.

See Also