List Collection Example 1

Visual LANSA

List Collection Example 1

This example shows how to use a list collection to drag and drop items from one form to another.

List collections provide an ordered collection of components. List collection components are positional in reference to a given index or to the beginning or end of the list. Indexing is always relative to 1.

In this example employee number and salary information for selected employees is stored in a list collection at the start of a drag-and-drop operation and at the end of the operation this information is retrieved from the collection to the other form.

Define the Collection

Add Items to the Collection

Retrieve Items From the Collection

Source Code for List Collection Example 1

Ý 6.22.4 Other Optimized Collections