Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I exit a form when an error occurs during load?
Message
 
À
12/07/1996 13:34:29
Paul Wei
Fib, State of Michigan
Lansing, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00003871
Message ID:
00003879
Vues:
29
try 'thisform.release()' instead....

>>I'm explicitly opening tables in a form's
>
>Let me try again. I'm opening tables in the form's load method and trapping for errors at the same time. When an error occurs, I want to exit the form right away. I am using the "release thisform" command to try to stop the form from continue to load. This is not working right now.
>
>My code in the load method looks something like:
>
>on error do err_rtn
>use xxx
>on error
>if err_flg &set in err_rtn
> release thisform
> return
>endif
>
>While I can exit the load method this way, the form seems to be keep on loading. What method should I use? Thanks for your help.
>
>
>Paul
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform