FireDAC.Stan.Param.TFDParams.Prepare

From RAD Studio API Documentation
Jump to: navigation, search

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 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