>>>Is there an easy way to prevent two copies of a modeless form from running? I have been trying to use the FindWindowEx api call but I am getting frustrated with figuring out the class name of the child window I am looking for. Please help.
>>
>>Do you mean two modeless forms within the same application?
>
>My menu calls a form "MyForm" with "do form MyForm". I want to prohibit two running copies of "MyForm"
>
>How do you reply so fast?
That's because question is easy.
****Formset.Startform method (you can also apply it to _screen)
parameter cFormname
if type("thisformset."+cFormname)="O"
this.&cFormname..show()
return 1
else
thisformset.addobject(cFormname,cFormname)
if type("thisformset."+cFormname)="O" && if Init successfully
this.&cFormname..show()
return 2
else
return 3
endif
endif
Edward Pikman
Independent Consultant