Datasnap.DBClient.TCustomClientDataSet.GetCommandStates
Delphi
function GetCommandStates(const ACommand: string): TDataSetCommandStates; virtual;
C++
virtual Data::Db::TDataSetCommandStates __fastcall GetCommandStates(const System::UnicodeString ACommand);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Datasnap.DBClient.pas Datasnap.DBClient.hpp |
Datasnap.DBClient | TCustomClientDataSet |
Description
Checks whether an extended command is supported and enabled or not.
GetCommandStates is used to check whether an extended command is supported and enabled, 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 ('[]').