>Hi. VFP7. I want to release a form, but only if it exists. How do I test for the presence of a particular form?
>
>Thanks, Randy
The way some frameworks handle this is, keep a list of open forms.
For example, let's assume the instance of an application object is called goProgram. (An application object is simply an object, defined once, that keeps important properties and methods handy throughout the application).
Instead of opening a form with:
DO FORM MyForm
you would use, instead:
goProgram.RunForm("MyForm")
and the method in the application object would add it to an array (which is also part of the application object).
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)