Data.DB.IDataSetCommandSupport.GetCommandStates

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCommandStates(const ACommand: string): TDataSetCommandStates;

C++

virtual TDataSetCommandStates __fastcall GetCommandStates(const System::UnicodeString ACommand) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Data.DB.pas
Data.DB.hpp
Data.DB IDataSetCommandSupport

Description

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