Destroy an Item in the Collection

Visual LANSA

Destroy an Item in the Collection

When a list entry loses selection,  the menu item is destroyed from memory by setting its reference to *NULL:

 

EVTROUTINE handling(#LTVW_1.ItemLostSelection) options(*NOCLEARMESSAGES *NOCLEARERRORS)
SET_REF com(#menu_items<#empno>) to(*null)
ENDROUTINE

 

Ý Example 4: Collection of Menu Items