XMLSpyControlDocument.QueryStatus
Method: QueryStatus (nCmdID as long) as long
Dispatch Id: 9
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 XMLSpy command. If QueryStatus returns a value of 1 or 5 the command is disabled. The client should call the QueryStatus method of the document control if there is currently an active document available in the application.