OBTAIN |
Get Hidden Terminal Input |
OBTAIN (chan[,fileopt])varlist
Where:
chan |
Channel or logical file number of the file from which to get terminal input. | ||||||||||||||||||||||||||||||
fileopt |
Supported file options (see File Options):
When screen positions are tight, you can combine the LEN= and SIZ= options to have PxPlus supply a scrolling input field. input (0,len=60,siz=30)"Name....:",N$ | ||||||||||||||||||||||||||||||
varlist |
Comma-separated list of variables, literals, mnemonics, IOL= options, and/or location functions '@(...)'. Include Format Masks to filter data being received. |
Use the OBTAIN directive to issue prompts to terminal devices and to process responses (the user's input). The file reference should be to a terminal, but you can use an indexed file. If you include literals or expressions in this directive, PxPlus treats them as prompts for the user.
You can include format masks, as in A$=STR(.01:"0.00"). If you omit the format mask for a numeric in the OBTAIN statement, the 'DP' (Decimal Point Symbol) and 'TH' (Thousands Separator) system parameters are ignored for European decimal settings.
ACCEPT Read Single Keystroke
INPUT Get Input from Terminal
'ME' Begin Edit Mode
'BI' Begin Input Transparency
Data Format Masks
obtain 'CS',@(5,5),"Enter your password:",C$
->run
Enter your password:|
The password, "TEST" in this example, is not echoed, but C$ will return the value.
->?C$
TEST