Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stopping form from loading if .t
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01565352
Message ID:
01565355
Views:
98
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>I have several calls to a form from other forms, from within the init method of the called form I am checking a database to see if record exists to prevent me from loading up the form.
>
>What is the best way of preventing the form to fully load once the form has started its init method. I want the called form to decide wether to load and if not I want to display a messagebox then close the form,
>
>I definately want to stop the called form form fully loading form within the called form, not from the calling form,
>
>Any help extremley appreciated.

Just return .F. from either Load method or Init method and the form will not instantiate.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform