Define the Collection

Visual LANSA

Define the Collection

The collection to store employee names is defined like this:

Define_Com Class(#Prim_kCol<#FullName #Std_Num>) Name(#Employee)

 

  • The #FullName value indicates the collection contains #FullName fields
  • The #STD_NUM parameter specifies this repository field used as the key to the collection (a packed (7,0) number)
  • The Name of the collection is #Employee.

Ý Example 1: Create a Keyed Collection