REQUEST CHOICE
CALL SEQUENCE
PRQCH (WKID, CHDNR, STAT, CHNR)
INPUT PARAMETERS
INTEGER WKID
INTEGER CHDNR
OUTPUT PARAMETERS
INTEGER STAT
INTEGER CHNR
ARGUMENTS
- WKID
- Workstation identifier.
- CHDNR
- CHOICE input device identifier.
- STAT
- State of request carried out.
- PNONE:
- 0 (NONE)
- POK:
- 1 (OK)
- PNCHOI:
- 2 (NO CHOICE)
- CHNR
- Choice made.
PHIGS STATE
(PHOP, WSOP, *, *).
EFFECT
Request an integer by user action on the active input device CHDNR with
the possibility of cancelling the input by activating the device break.
Example:
C Request choice on workstation number 1 using device number 40
INTEGER WKID,CHDNR,STAT,CHNR
.....
WKID = 1
CHDNR = 40
call PRQCH(WKID,CHDNR,STAT,CHNR)
......
ERRORS
- 3
Ignoring function, function requires state (PHOP, WSOP,*,*)
- 54
- Ignoring function, the specified workstation is not open
- 61
- Ignoring function, specified workstation is neither of category INPUT nor
of category OUTIN
- 250
- Ignoring function, the specified device is not available on the specified
workstation
- 251
- Ignoring function, the function requires the input device to be in REQUEST
mode
SEE ALSO
set choice mode, initialize choice, sample choice, get choice, await event,
inquire choice device state, inquire default choice device state 3
