Define the Collection

Visual LANSA

Define the Collection

The collection to store employee names is defined like this:

 

Define_Com Class(#Prim_kCol<#GiveName #SurName>) Name(#Employee)

 

  • The collection is named #Employee.
  • It collects an employee's #GiveName (given or first name).
  • It is uniquely keyed an employee's #SurName (last name or surname).

Example 2: Collections do not Need to Be Keyed by Index