>Is there a way to check to see if a form exists, and if it is shown?
use something called the _SCREEN object.
There is an array property of the _SCREEN object that you can use to find out whether or not a particular form exists called Forms.
So a statement like _SCREEN.Forms[1].Name would give you the name of the "first" form that is inside the main foxpro window.
_SCREEN.FormCount gives the total number of forms.
If you know the Name or Caption or something about the form you are looking for you can find it using a FOR loop and _SCREEN.FormCount and _SCREEN.Forms[i]
Total=_SCREEN.Formcount
FOR i = 1 TO Total
IF _SCREEN.Forms[i].Name="FormIMLookingFor"
ENDIF
ENDFOR
HTH
Dave
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only