> second option: Replacing "yourname" with Thisform.Name will never let the form to start even for the first time. i.e. IF loForm.name = Thisform.Name will return always TRUE.
Sorry, I was dumb. Please try it again with the following code:
FOR EACH loForm IN _screen.forms
IF loForm.name = thisform.name and loForm.visible
* form already loaded
messagebox("already loaded")
RETURN .F.
ENDIF
ENDFOR
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts