>What variable, value or condition do I check to check the existence of "ThisForm.OtherForm"? I want to make sure the new form is closed before it is called again, because the form creates a cursor to populate the data, and the initial cursor would be destroyed thus causing a problem when returning to the first open instance. Is there a conditional statement to test before issuing ThisForm.OtherForm.Release() ?
You might also check if type("ThisForm.OtherForm") = "O". After instantiating the form, the type of the reference will be "O" (Object), but after destroying the form, it will be of type "U" (unknown).
On the other hand, cursors in one form should not interfere with cursors in another form. Each form, and especially each data-handling form, should use a private datasession (Form.DataSession = 2 - private).
In this case, I would still recommend only one child form per parent form, but only for organizational purposes.
>This could also be applied when closing the first form as well (if I follow your discussion with Naomi).
If you do have any problem (I am not quite sure of this), you could also set the property reference to NULL: ThisForm.OtherForm = NULL. If the form was created with the LINKED keyword, that should automatically close the other form.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)