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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my first modeless form also closes, How2Return

Status
Not open for further replies.

justamistere

Programmer
Jul 25, 2002
67
US
How do I return to the first form without closing it?

After exiting "MyEditForm" and then exiting "MySearchForm", the first form "MyForm" also closes. Description follows.

ABC_Start.prg
*** From the startup program "ABC_Start.prg"
*** MyForm is Modeless
DO FORM MyForm NAME MyForm LINKED

*** On the btnSearch.Click Event of "MyForm"
*** MySearchForm is Modal
DO FORM MySearchForm WITH "MAINTAIN"

*** on the btnEdit.Click Event of "MySearchForm"
*** MyEditForm is Modal
DO FORM MyEditForm WITH ""
 
justamistere

ABC_Start.prg
*** From the startup program "ABC_Start.prg"
*** MyForm is Modeless
PUBLIC MYFORM
DO FORM MyForm NAME MyForm LINKED

How are you exiting MySearchForm? Do you use a commandbutton to release it, and if so, what is in its CLICK event besides THISFORM.RELEASE? Are you issuing CLEAR EVENTS? If so, remove it from this form.

Al
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top