version 6.0
WR O MENU STATUS (area; command; checked; status{; name})
| Parameter | Type | Description | |
| area | Longint | 4D Write area | |
| command | Integer | Command number | |
| checked | Integer | Receives checked status | |
| 0 = Not checked | |||
| 1 = Checked with "*" | |||
| 2 = Checked with "-" | |||
| status | Integer | Receives active status | |
| 0 = Inactive | |||
| 1 = Active | |||
| name | Text or String | Receives name of menu item |
Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR GET COMMAND INFO command.
Description
The command WR O MENU STATUS determines if the menu item represented by command is checked or active.
Note: The command numbers used by WR O MENU STATUS are not documented in the present manual. Please refer to the 4D Write 6.0.x documentation or use the WR GET COMMAND INFO command.
After a call to WR O MENU STATUS, the checked and active variables contain values that describe the state of command in area.
If active equals 1, the menu item is enabled. If active equals 0, the item is disabled. If checked equals 0, the item is not checked.
If checked equals 0, the item is unchecked. If checked equals 1, the item is checked using the standard * check mark character. If checked equals 2, the item is checked using the "-" dash character.
The optional name parameter must be a text or string variable and will return the text of the menu item.
See Also