Variable

Function

{s1 s2 sn}

Field definitions. A field definition (sx) can have two formats: “label”, a field

 

label, or { “label” “helpInfotype0 type1 typen }, a field label with optional help

 

text that appears near the bottom of the screen, and an optional list of valid

 

object types for that field. If object types aren’t specified, all object types are

 

valid. For information about object types, see the TYPE command.

 

When creating a multi-column dialog box, you can span columns by using an

 

empty list as a field definition. A field that appears to the left of an empty

 

field automatically expands to fill the empty space.

 

 

format

Field format information. This is the number col or a list of the form { col tabs

 

}: col is the number of columns the dialog box has, and tabs optionally

 

specifies the number of tab stops between the labels and the highlighted

 

fields. This list can be empty. col defaults to 1 and tabs defaults to 3.

 

 

{ resets }

Default values displayed when RESET is selected. Specify reset values in the

 

list in the same order as the fields were specified. To specify no value, use the

 

NOVAL command as a place holder. This list can be empty.

 

 

{ init }

Initial values displayed when the dialog box appears. Specify initial values in

 

the list in the same order as the fields were specified. To specify no value, use

 

the NOVAL command as a place holder. This list can be empty.

 

 

If you exit the dialog box by selecting OK or `, INFORM returns the field values { vals } in item 1 or level 2, and puts a 1 in item 2 or level 1. (If a field is empty, NOVAL is returned as a place holder.) If you exit the dialog box by selecting CANCEL or B, INFORM returns 0.

Access:

!°LIN INFORM

 

 

( °is the left-shift of the Nkey).

 

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L5/A1

L4/A2

L3A3

L2/A4

L1/A5

L2/I1

L1/I2

 

 

 

 

 

 

 

 

 

 

 

 

“title”

{s1 s2

... sn }

format

{resets }

{init }

{ vals }

1

 

 

“title”

{s1 s2

... sn }

format

{resets }

{init }

0

 

 

 

 

 

 

 

 

 

 

L = Level; A = Argument; I = item

Example: Place the following five lines on the stack and run INFORM:

"The Title"

{{ "ONE" "Name?" 2 } { } { "TWO" "Age?" } { "THREE" "Lucky numbers?" 5 } }

{2 }

{NOVAL NOVAL { 1 2 3 } }

{"Charlotte" NOVAL { 4 5 6 } }

See also: CHOOSE, INPUT, NOVAL, TYPE

INPUT

Type: Command

Description: Input Command: Prompts for data input to the command line and prevents the user access to stack operations.

When INPUT is executed, the stack or history area is blanked and program execution is suspended for data input to the command line. The contents of “stack prompt” are displayed at the top of the screen. Depending on the second argument (level 1), the command line may also

contain the contents of a string, or it may be empty. Pressing `resumes program execution and returns the contents of the command line in string form.

Full Command and Function Reference 3-117