Define the Reference

Visual LANSA

Define the Reference

The main form defines a reference to the child form (in this example called #REFEX2):

 

DEFINE_COM class(#REFEX2) name(#AddressForm) reference(*dynamic)

 

When we use REFERENCE(*DYNAMIC) we tell the application that an instance of the form #REFEX2, referred to as #AddressForm, will be created when  we get round to it, not when the main form is loaded (as is the case normally with a DEFINE_COM statement). This means that before we can use this new reference, we have to create it using a SET_REF command.

Ý 6.23.1 Dynamic Multi-Form Application