>I have a modeless form with buttons that launch other forms (also modeless). Each child form has a custom property that links it to the parent form. When the parent is closed (by clicking the X) the Destroy code loops backwards through the forms collection array and checks each form for the property linking it to the parent. If found it executes _screen.forms[lnCount].Release().
>
Two issues we have found:
1. Using TYPE("MyObject") = "O" AND PEMSTATUS(MyObject, method, 5) on the same line--silly as it sounds.
2. Using ADDOBJECT(myObject, ClassName, THIS.Controls[2]) IOW, passing an enumerated object reference to the init of a new object.
Charlie