MapForceControl.QueryStatus
Method: QueryStatus (nCmdID as long) as long
Dispatch Id: 7
Description:
QueryStatus returns the enabled/disabled and checked/unchecked status of the command specified by nCmdID. The status is returned as a bit mask.
Bit Value Name Meaning
-----------------------------------------------------------------------------------------------------------------------
0 1 Supported Set if the command is supported.
1 2 Enabled Set if the command is enabled (can be executed).
2 4 Checked Set if the command is checked.
This means that if QueryStatus returns 0 the command ID is not recognized as a valid MapForce command. If QueryStatus returns a value of 1 or 5, the command is disabled.