FireDAC.Comp.Client.TFDAdaptedDataSet.GetCommandStates

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCommandStates(const ACommand: String): TDataSetCommandStates; override;

C++

virtual Data::Db::TDataSetCommandStates __fastcall GetCommandStates(const System::UnicodeString ACommand);

Properties

Type Visibility Source Unit Parent
function protected
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDAdaptedDataSet

Description

Checks whether an extended command is supported and enabled or not.

Checks whether an extended command is supported and enabled or not.

FireDAC.Comp.Client.TFDAdaptedDataSet.GetCommandStates inherits from Data.DB.IDataSetCommandSupport.GetCommandStates. All content below this line refers to Data.DB.IDataSetCommandSupport.GetCommandStates.

Checks whether an extended command is supported and enabled or not.

GetCommandStates is used to check whether the TDataSet descendant supports an extended command and also whether the supported commands are enabled.

The ACommand parameter is the command to check.

The method returns a TDataSetCommandStates.

If the command is not supported, then the method returns an empty set ('[]').


See Also