# FORMLIST

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

# Description

The FORMLIST statement creates an active select list from a dynamic array. It takes the general form:

FORMLIST variable1 {TO variable2 | listnum}
1

Where:

  • variable1 specifies the dynamic array from which the active select list is to be created.
  • If variable2 is specified, then the newly created list will be placed in the variable.
  • Alternatively, a select list number in the range 0 to 10 can be specified with listnum.

If neither variable2 nor listnum is specified then the default list variable will be assumed.

An example of use is as:

arr_Var = "key3" : @AM : "key4" : @AM : "key5"
FORMLIST arr_Var TO list_Var
LOOP
    READNEXT Key FROM list_Var ELSE EXIT
    READ Item FROM Key THEN
        * Do whatever processing is necessary on Item
    END
REPEAT
1
2
3
4
5
6
7
8

See also: DELETELIST, READLIST, WRITELIST

Go back to jBASE BASIC

Go back to Programmers' Reference Guide