RFDocument.RunCommandByName
Description
Executes the specified command.
Syntax
Function RFDocument.RunCommandByName(workbenchName As String,
parentName As String, menuName As String) As RFErrorCode
The RunCommandByName syntax has these parts:
| Part |
Description |
| workbenchName |
[IN] String Required. Workbench name to which the command belongs. |
| parentName |
[IN] String Required. Name of the parent command. |
| menuName |
[IN] String Required. Name of the command. |
Remarks
- A unique command is identified by 3 hierarchical name identifiers, which are workbench name, parent name in the menu hierarchy and the command name itself as built in the RapidForm GUI menu bar. For an example, the "welding a shell" command in the Polygon workbench can be identified as follows,
Workbench name: "Polygon"
Parent name: "Weld"
Command name: "One Shell"
For another example, the "shrinking shells" command in the Polygon workbench can be identified as follows,
Workbench name: "Polygon"
Parent name: "Tool"
Command name" "Shrink Shell"
Return to Rapidform Index