Keywords: sic

Next: EDIT Mode Up: Running Tasks Previous: Window Mode Contents Index

## Query Mode

When no window-mode is available, the user is prompted for the parameters. In this example, the dialog will be

         An integer value
         INTEGER     I$           1 <CR>
         A value between 0 and 1
         REAL        A$           0.1 <CR>
         Any character string
         CHARACTER   CHAIN$       ABCD <CR>
         4 Real values
         REAL        ARRAY$[4]    1 2 3 4 <CR>
         A valid name
         FILE        FILE$        TESTFILE.DAT <CR>
         Any values
         VALUES      OLD$         acos(-1) 1.234 <CR>

The prompting method is always the same: an explanatory first line indicating the meaning of the parameter, and a second line in the following format:

         TYPE NAME[Dimensions]

where

- `TYPE` indicates the type of parameter `(CHARACTER, FILE, INTEGER, LOGICAL, REAL)`. A parameter of type `FILE` is a character string containing a valid file name. `VALUES` is intended to hold multiple values (which can be mathematical expression), without any prior on the number of values.
- `NAME` is the parameter name
- `[Dimensions]` are the parameter dimensions, in case it is an array. Only `REAL` and `INTEGER` parameters may be arrays.

Query mode is also used for missing parameters in Window-mode.