Define the Collection

Visual LANSA

Define the Collection

The list collection is defined dynamically in the StartDrag event of the list of employees.  In this way the scope of the list collection is limited to the drag operation. The #Employee_Number variable is created to store employee numbers of selected employees. Because the collection is dynamic, it has to be explicitly created with a SET_REF command:

Define_Com Class(#Prim_LCOL<#Prim_ALPH>) Name(#PayLoadList) Reference(*Dynamic)

Define_Com Class(#Prim_ALPH) Name(#EmployeeNumber) Reference(*Dynamic)
 
Set_Ref Com(#PayLoadList) To(*Create_as #Prim_LCOL<#Prim_ALPH>)
 

Ý List Collection Example 1