FORMLIST, FORMLISTV |
|
|
The FORMLIST statement creates a numbered select list from a dynamic array. The FORMLISTV statement is similar but creates a select list variable.
Format
FORMLIST dyn.array {TO list.no}
FORMLISTV dyn.array TO var
where
Any existing select list list.no or in var is cleared and a new list is created from the elements of dyn.array. This list may be separated by field marks, item marks or a mixture of both.
Examples
READ REC FROM ACCOUNTS, "OVERDUE" THEN FORMLIST REC
This program fragment reads a list from record OVERDUE of file ACCOUNTS and creates select list zero from the elements of this list.
READ REC FROM ACCOUNTS, "OVERDUE" THEN FORMLIST REC TO 2
This program fragment is similar but creates select list 2.
READ REC FROM ACCOUNTS, "OVERDUE" THEN FORMLISTV MYLIST
This program fragment is again similar but creates MYLIST as a select list variable.
See also: |