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!

How to discard a form before it becomes visible.

Status
Not open for further replies.

castor2003

Programmer
Jul 5, 2003
115
LC
I have a set of fours forms that has a 'Parent-Child' relationship. If the data created by the Great Grand parent form is not inputted yet, I want to signal to the user trying to open a decendant form that it is not possible until the Great Grand Parent form is run the data is set.

So I use the Init and Load methods to do that. Where the condition for opening the current form is unfavourable, I issue a 'THISFORM.RELEASE'. but the form continues to open and get displayed. I tried 'RETURN', same result. How do I achieve my objective.
 
Okay...

I was only had 'RETURN' which really converts to RETURN .T.

I will try that...thanks a million


Well I have and it worked....
 
Ramani
I had to shift it to the LOAD method since I had a lot of loading stuff doing which I did not want carried out in an unfavorable condition...

Thanks again.
 
You may wish to use a Pageframe for this process. Then, you can simply disable the tab until it the proper data entry has taken place.



Don


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top