Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

FORMLIST

Description

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

FORMLIST variable1 {TO variable2 | listnum}

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


See also: DELETELIST, READLIST, WRITELIST

Go back to jBASE BASIC.

Was this article helpful?