Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing Form
Message
De
22/02/1999 10:01:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00189940
Message ID:
00189942
Vues:
8
>I am trying to create error handling in my forms. I am using the data environment to open my tables. If there is a problem, such as exclusive file lock or missing file I am trying to stop the form load before the form is loaded. I have created error trapping in the error method of the data to catch the various possible errors and then set a form property to true that a data load error occured.
>
>I then try to stop the form at this point, within the form init process, after letting the user know that an error occured but no matter where I put a form release the code still goes thru the init and activation of the form.
>
>Am I on the wrong track or is there something I am missing.

Hsave the form's Init method return .F. rather than trying to invoke the release directly - returning .F. will prevent the form from being instantiated.

>
>Any help would be appreciated.
>
>BTW this is currently VFP5.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform