Datasnap.DBClient.TCustomClientDataSet.GetCommandStates

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TCustomClientDataSet

Delphi

function GetCommandStates(const ACommand: string): TDataSetCommandStates; virtual;

C++

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

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 ('[]').

See Also