User`s guide
Reading the State of the MCP
It is good programming practice to check the state of the MCP before ATTACHing to it. The
instruction:
cur.state = PENDANT(-3)
returns a value to be interpreted as follows:
1. Indicates that one of the predefined function buttons has been pressed.
2. Indicates that the MCP is in background mode (not ATTACHed to an application
program).
3. Indicates that an error is being displayed.
4. Indicates that the MCP is in USER mode (ATTACHed to an application program).
See the section Programming Example: MCP Menu on page 279 for a program example that
checks the MCP state.
Detecting User Input
V+Language User's Guide, v17.0
Page 272










