version 1
CT DO COMMAND (area; command)
| Parameter | Type | Description | |
| area | Longint | 4D Chart area | |
| command | Longint | Number of command |
Description
CT DO COMMAND executes the menu command specified by command. The menu command is executed as if the user had chosen it from a 4D Chart menu. Use this command to perform any actions that do not have an equivalent command in the language. area can be an offscreen area.
The possible values for command are listed in the Command Codes section. These numbers will remain the same even if menu items are changed or moved in future versions of 4D Chart.
Example
This example selects all the objects in the specified area and duplicates them.
`Same as choosing Select All from the Edit menu CT DO COMMAND (Area;2009) `Same as choosing Duplicate from the Edit menu CT DO COMMAND (Area;2007)
See Also