>Hi,
>
> This is my last question for this topic.
>
> Could you please tell me the exact code for:
>
>
> 1. I check for a form if they already active.
> 2. if the form is not active I use do form "myform"
> 3. if its already active I want to activate it instead of do form "myform"
>
> Thanks
Larry,
Most of us have a form manager cobject that launches form and tracks there presence and status. With this type of class it becomes easy to figrue out what you are asking because you designed the method for storing the information.
To do this generically using the only the facilities in VFP you could try something like this;
LPARAMETERS pcFormFile, pcFormTitle
LOCAL oForm
FOR EACH oForm IN _SCREEN.Forms
IF oForm.Title = pcFormTitle
oForm.Show()
RETURN
ENDIF
ENDFOR
DO FORM (pcFormName)