Array Collection Example

Visual LANSA

Array Collection Example

This example shows how to use an array collection to store and look up information. The aim of the example is to show in a simple context the basic techniques of using array collections. In real situations you would implement an array collection with large amounts of data for performance reasons.

Array collections are a dynamically sized, ordered collection of components that can be located by indexing. Indexing is always relative to 1.

In this example Department Code, Employee Salary and Zip Code information is stored in an array collection. When an employee is selected in the list view, this information is retrieved from the array collection.

Define the Collections

Add Items to the Collections

Retrieve the Values from the Collections

Source for the Example

Ý 6.22.4 Other Optimized Collections