Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stopping form from loading if .t
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01565352
Message ID:
01565355
Vues:
99
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform