Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window Object

Status
Not open for further replies.

Keeper00

Programmer
Jul 17, 2003
13
US
I have a problem with a window object being released. I have a main window open, with another window, which is modal in the top form. This second window calls another window that is modeless. I need to Hide or Deactivate the second window, so when the user closes the third window, the second window is activate and is on top. The problem is when I come back to the second window, the object for the window is gone. How do I preserve the second window's object to be used again?

 
Unless you are explicitly releasing it, it should still be around somewhere. Check your code and make sure you're not doing something like Form2.Release somewhere.
You should just be able to do a Form2.Hide and DO FORM Form3 in a command button. Then when Form3 is released, do a Form2.Show.


-Dave S.-
[cheers]
Even more Fox stuff at:
 
Concur with DSumm. It should still be around unless you are releasing it. Did you try ACTIVATE WINDOW mywindow

myWindow is the name of the form.



Jim Osieczonek
Delta Business Group, LLC
 
I have checked all of my code and stepped through it in debug. I do not have any release commands on that second window. The object for the window is present until it reaches the read events line of code from the screen 1. At that time the object is lost. Is there a way to copy to the object to a temporay object and then restore that object when the second window is activate again?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top