Destroy the Collection

Visual LANSA

Destroy the Collection

All buttons in the collection are be destroyed when the user clicks on the Destroy all Buttons button which sets the reference to the entire collection to *NULL:

 

EVTROUTINE handling(#DESTROY_BUTTON.Click)
SET_REF com(#BUTTON_COLLECTION) to(*null)
ENDROUTINE

 

Ý Example 5: Dynamically Create Buttons