FireDAC.Stan.Param.TFDParams.ParamByPosition

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ParamByPosition(const AValue: Integer): TFDParam;

Properties

Type Visibility Source Unit Parent
function public FireDAC.Stan.Param.pas FireDAC.Stan.Param TFDParams

Description

Searches for an individual parameter by its TFDParam.Position in the SQL command text.

Use the ParamByPosition method to search for a TFDParam object in the existing TFDParams colection by its position (the TFDParam.Position value).

AValue sets the position value. The positions start from 1.

If there is no parameter at the specified position, an exception is thrown.

Note To search for individual parameters by index, use the TFDParams.Items property. The Items property returns a parameter by its index in the parameters collection.

See Also