>How to know if a form is activated before.
>Thanks
Do you mean if you have another instance of this form already running? In this case you can go through _screen.forms collection and get the name from there. For example:
FOR EACH loForm IN _screen.forms
IF loForm.Name = "myForm"
WAIT WINDOW "my form is already running"
exit
ENDIF
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison