Hi guys
i am trying to avoid a Child form open twice in my MDI form
how can i find out if an instance of the child form is already open?
i know how to do this when using _screen as MDI, but now i have an own MDI class I want to use
Karben Selim Mejia
LOCAL lnInstances
lnInstances = 0
*:Verificando si ya existe una instancia de la forma a correr. Solo se permite una instancia
FOR EACH loForm IN _screen.Forms
*:Si hy una forma con el mismo nombre
IF This.Name = loForm.Name THEN
lnInstances = lnInstances + 1
IF lnInstances > 1 THEN
MESSAGEBOX(lsTranslate("An instance of this form already open"),16,lsTitulo)
loForm.Show()
RETURN .F.
ENDIF
ENDIF
ENDFOR
Honduras, Central America
The very centre of the world