FORMLIST


The FORMLIST statement creates an active select list from a dynamic array.

 

COMMAND SYNTAX

FORMLIST variable1 {TO variable2 | listnum}

 

SYNTAX ELEMENTS

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.

 

NOTES

See also: DELETELIST, READLIST, WRITELIST

EXAMPLES

MyList = "key1":@AM:"key2":@AM:"key3"
FORMLIST MyList TO ListVar
LOOP
    READNEXT Key FROM ListVar ELSE EXIT
    READ Item FROM Key THEN
    	* Do whatever processing is necessary on Item
    END
REPEAT

jBC