Language Reference Guide : System Classes : CompSource Class : ParentApplication Attribute
 
Share this page          
ParentApplication Attribute
Data Type: AppSource
4GL Access: RW
The ParentApplication attribute specifies the application to which the component belongs.
If you are creating a frame, procedure, or user class dynamically, set this attribute last. When you set this attribute, the system checks to see that the new frame, procedure, or user class name is unique within the application and then registers it in the application. OpenROAD automatically compiles the new frame, procedure, or user class before running it.
Note:  Compilation takes place only if the IsStale attribute is TRUE. However, IsStale is TRUE by default until compilation occurs or you specifically set it to FALSE.
If you set ParentApplication to null, OpenROAD frees the frame, procedure, or user class from the application and releases its associated memory.