version 1
CT EXPERT COMMAND (area; command; status)
| Parameter | Type | Description | |
| area | Longint | 4D Chart area | |
| command | Longint | Number of command | |
| status | Integer | Status of the menu item in expert mode | |
| -1 = Returns current value | |||
| 0 = Enabled | |||
| 1 = Disabled |
Description
CT EXPERT COMMAND enables or disables a menu command for 4D Chart expert mode.
If status equals 0, the menu command specified by command is enabled in expert mode.
If status is greater than 0, the item is disabled.
If status is a variable equal to -1, CT EXPERT COMMAND returns the current status of the menu command in status (0 = Enabled; 1 = Disabled).
The possible values for command are listed in the Command Codes section.
If a menu item is disabled with CT EXPERT COMMAND, it can still be executed by calling CT DO COMMAND.
Example
This example disables the Paste Field menu command in the Database menu.
CT EXPERT COMMAND (Area;6001;1) CT EXPERT MODE (Area;1)
See Also
Command Codes, CT EXPERT MODE.