Jeff,
Assuming each form has a unique .Name property, use this UDF in a SKIP FOR condition on the each form menu item:
FormRunning( "frmOne" )
Here's the UDF:
lparameter pcFormName
local i, llRetVal
llRetVal = .f.
pcFormName = upper( pcFormName )
for i = 1 to _screen.FormCount
if ( upper( _screen.Forms[i].Name ) == pcFormName )
llRetVal = .t.
exit
endif
endfor
return llRetVal
>Application:
>Multiple forms run within a top level form. Each form is invoked by a menu which runs within the top level form. Config.fpw has application.visible = .F.
>
>Question:
>How can I insure that only one instance of each form can be invoked. I do want the user to be able to be using a second form at the same time.
>
>Alternatives thought about:
>Grey out the menu selection after it is selected, reactivate after the form is closed.