MapForceControlDocument.Exec
Method: Exec (nCmdID as long) as boolean
Dispatch Id: 8
Description:
Exec calls the MapForce command with the ID nCmdID. If the command can be executed, the method returns true. This method should be called only if there is currently an active document available in the application.
To get commands organized according to their menu structure, use the MainMenu property of MapForceControl. To get toolbar commands, use the Toolbars property of the MapForceControl.