Thanks for the help, it worked!! It's alot easier then searching for objects too.
THanks again
Jim
>Jim,
>
>You can use the _SCREEN.FORMS() array to look through all of the open forms on the FoxPro desktop. Use something like:
>
>FOR i = 1 to _SCREEN.FORMCOUNT
> IF _SCREEN.FORMS(i).Caption="FormTitle" OR _SCREEN.FORMS(i).Name = "FormName"
> && Whatever you want to do here
> ENDIF
>ENDFOR
>
>One Caveat. Undocked toolbars show up in the FORMS() array so you may also want to check to see if the _SCREEN.FORMS(i).BaseClass = "Form"
>
>That's all folks!
Thanks
Jim