SAMPLE CHOICE
CALL SEQUENCE
PSMCH (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
- Current choice.
PHIGS STATE
(PHOP, WSOP, *, *).
EFFECT
Reads the current choice on the active input device, CHDNR.
Example:
C Sample choice on workstation number 1 using device number 40
INTEGER WKID,CHDNR,STAT,CHNR
.....
WKID = 1
CHDNR = 40
call PSMCH(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
- 252
- Ignoring function, the function requires the input device to be in SAMPLE
mode
SEE ALSO
set choice mode, initialize choice, sample choice, get choice, await event,
inquire choice device state, inquire default choice device state 3