Full Command and Function Reference 3-85
Input/Output:
Level 2/Argument 1 Level 1/Argument 2 Level 1/Item 1
'global'
→
{ global }
→
{ global x
start
x
end
}
→
{x
start
x
end
}
→
x
start
x
end
→
See also: DEPND
INFORM
Type: Command
Description: User-Defined Dialog Box Command: Creates a user-defined input form (dialog box).
INFORM creates a standard dialog box based upon the following specifications:
Variable Function
“title” Title. This appears at the top of the dialog box.
{s
1
s
2
…
s
n
} Field definitions. A field definition (s
x
) can have two formats: “label”, a field
label, or { “label” “helpInfo” type
0
type
1
… type
n
}, 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: !°L
IN INFORM ( °is the left-shift of the Nkey).
Input/Output:
L
5
/A
1
L
4
/A
2
L
3
A
3
L
2
/A
4
L
1
/A
5
L
2
/I
1
L
1
/I
2
“title” {s
1
s
2
... s
n
} format {resets } {init }
→
{ vals } 1
“title” {s
1
s
2
... s
n
} format {resets } {init }
→
0
L = Level; A = Argument; I = item