Download FILE - Minisoft
Transcript
INQUIRE INQUIRE[[row,column]] symbol-name [prompt-string] Where: prompt-string is a quoted string, lexical, symbol, or combination of the above joined by plus signs (+) (i.e., prompt-string = “string”+symbol). Outputs a prompt string and waits for input. The input string is stored in the symbol-name specified. By default, the symbol-name is a local symbol. To make the symbol global, use the /GLOBAL qualifier. Like the DISPLAY command, the INQUIRE command can process terminal escape sequences, lexicals, and symbols in the prompt string. An initial cursor position can be specified in brackets [ ] immediately following the command. If specified, the cursor moves to the position indicated before the prompt string displays. Specifying a position of 0 for the row or column positions the cursor at the current row or column on the screen. By default, INQUIRE uses the screen. However, INQUIRE uses the status line when the /STATUS option is used. Note: Using cursor positioning while outputting data to the status line or dialog box can produce unusual results and should be avoided. INQUIRE will not send a carriage return or line feed unless it is placed within the prompt string or the /CR option is used for a single line of text. Valid options: /CASE By default, INQUIRE/KEY is not case sensitive. It does not return the S^ indicator with the key names for alphanumeric keys. Specifying /CASE returns the S^ indicator with uppercase alphanumeric keys. /CASE is only meaningful when used with the /KEY option. /CR Send a carriage return at the end of the prompt string. /DIALOG symbol-name [prompt-string] Prompts the user for input from a dialog box rather than from the text emulation window. The user supplies a symbol name and a prompt string. The dialog box displays the prompt string and an edit field in which the user can type the symbol value. /GLOBAL The symbol name is defined as global. /KEY Reads a single keystroke and returns its ASCII key name. The name returned is the same name displayed when the key is pressed in Scan mode. Key remapping is disabled when /KEY is used. /KEY is useful for obtaining a single PC keystroke, such as an arrow key. /LOCAL The symbol name is defined as local. This is the default INQUIRE condition. 148