FireDAC.Stan.Param.TFDParam.SetDataSet

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetDataSet(ADataset: TDataSet; AOwner: Boolean = True;
AIndex: Integer = -1);

C++

void __fastcall SetDataSet(Data::Db::TDataSet* ADataset, bool AOwner = true, int AIndex = 0xffffffff);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Stan.Param.pas
FireDAC.Stan.Param.hpp
FireDAC.Stan.Param TFDParam

Description

Assigns a dataset object to a parameter.

Use SetDataSet method to assign the TDataSet object to the TFDParam. Set AOwner to True to specify that this parameter will be the owner of the dataset object. Set AIndex to the index of dataset item for the array-valued parameter.

SetDataSet sets the DataType property to ftDataSet.

See Also