Hi!
You can change the form caption temporarily for the moment before the FindWindow() call to something unique based on the sys(3) function value, then restore it back:
lcOldCaption = oMyForm.Caption
lcTempCaption = lcOldCaption + sys(3)
oMyForm.Caption = lcTempCaption
&& call FindWindow() here ...
oMyForm.Caption = lcOldCaption
BTW, in VFP7 form class have the HWND property that you can use instead of finding it.
HTH.
>Thanks Guys! Vlad - the only trouble is I change the top level form caption to reflect which screen the user is on - can I specify something like lcMyApp = "My Application - *" I know that won't work but you get my drift?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.