Returns the state of one of the various flags that affects
command behavior. You can set the value of a flag with Command.SetFlag.
Note: You can get the values of flags as properties. The list of
those properties can be found in the See Also section.
Boolean Command.GetFlag( Int32 ); |
oBoolean = Command.GetFlag( Flag ); |
Boolean indicating whether or not the requested flag is enabled
Parameter | Type | Description |
---|---|---|
Flag | siCommandCapabilities | Flag to retrieve. |
/* See if a command supports key assignment. */ var oCmd = Commands.Item("Apply Operator"); if ( true == oCmd.GetFlag(siSupportsKeyAssignment) ) { LogMessage(oCmd.Name + " supports key assignment."); } else { LogMessage(oCmd.Name + " does not support key assignment."); } |