Syntax of INPUT ARRAY instruction
The INPUT ARRAY
supports data entry by
users into a screen array and stores the entered data in an array
of records.
Syntax
INPUT ARRAY array
[
WITHOUT DEFAULTS ]
FROM screen-array.*
[
ATTRIBUTES ( {
display-attribute
|
control-attribute
}
[
,...]
) ]
[
HELP help-number ]
[
dialog-control-block
[...]
END INPUT ]
where dialog-control-block is one
of:
{
BEFORE INPUT
|
AFTER INPUT
|
AFTER DELETE
|
BEFORE ROW
|
AFTER ROW
|
BEFORE FIELD field-spec [
,...]
|
AFTER FIELD field-spec [
,...]
|
ON ROW CHANGE
|
ON CHANGE field-spec [
,...]
|
ON IDLE seconds
|
ON TIMER seconds
|
ON ACTION action-name
[
INFIELD field-spec ]
[
ATTRIBUTES ( action-attributes-input-array ) ]
|
ON KEY ( key-name [
,...]
)
|
BEFORE INSERT
|
AFTER INSERT
|
BEFORE DELETE
}
dialog-statement
[...]
where action-attributes-input-array
is:
{
TEXT = string
|
COMMENT = string
|
IMAGE = string
|
ACCELERATOR = string
|
DEFAULTVIEW = {
YES |
NO |
AUTO }
|
VALIDATE = NO
|
CONTEXTMENU = {
YES |
NO |
AUTO }
|
ROWBOUND
[
,...]
}
where dialog-statement is one
of:
{
statement
|
ACCEPT INPUT
|
CONTINUE INPUT
|
EXIT INPUT
|
NEXT FIELD {
CURRENT |
NEXT |
PREVIOUS |
field-spec }
|
CANCEL DELETE
|
CANCEL INSERT
}
where field-spec identifies a unique field with one
of:
{
field-name
|
table-name.field-name
|
screen-array.field-name
|
screen-record.field-name
}
where display-attribute
is:
{
BLACK |
BLUE |
CYAN |
GREEN
|
MAGENTA |
RED |
WHITE |
YELLOW
|
BOLD |
DIM |
INVISIBLE |
NORMAL
|
REVERSE |
BLINK |
UNDERLINE
}
where control-attribute
is:
{
ACCEPT [
= boolean ]
|
APPEND ROW [
= boolean ]
|
AUTO APPEND [
= boolean ]
|
CANCEL [
= boolean ]
|
COUNT = row-count
|
DELETE ROW [
= boolean ]
|
FIELD ORDER FORM
|
HELP = help-number
|
INSERT ROW [
= boolean ]
|
KEEP CURRENT ROW [
= boolean ]
|
MAXCOUNT = max-row-count
|
UNBUFFERED [
= boolean ]
|
WITHOUT DEFAULTS [
= boolean ]
}
- array is the array of records that will be filled by the
INPUT ARRAY
statement. - help-number is an integer that allows you to associate a help message number with the instruction.
- field-name is the identifier of a field of the current form.
- table-name is the identifier of a database table of the current form.
- screen-record is the identifier of a screen record of the current form.
- screen-array is the screen array that will be used in the form.
- action-name identifies an action that can be executed by the user.
- seconds is an integer literal or variable that defines a number of seconds.
- key-name is a hot-key identifier (like
F11
orControl-z
). - statement is any instruction supported by the language.
- row-count defines the initial number of rows for a static array.
- max-row-count is the maximum number of rows that can be created.
- boolean is a boolean expression that evaluates to
TRUE
orFALSE
. - action-attributes are dialog-specific action attributes.