Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try..catch singularity
Message
De
30/01/2005 19:23:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00982075
Message ID:
00982139
Vues:
40
No idea, but curious how you discovered this. The compiler does catch it, so you must be running code after getting compiler errors. Why? That's seems like dangerous practice.

-- Randy

>I just found an interesting phenomenon in a try..catch block.
>
>Copy the following code verbatim to a prg and run it in the debugger (don't run it from the ide or vfp will go into an infinite loop and you'll have to ctrl-alt-delete it):
Try
>	* I know you don't have the csase table. That's to ensure
>	* the error happens.
>	USE csase Exclusive
>catch to loException
>	MessageBox( loException.message + Chr(13) + Chr(10) ;
>		+ loException.LineContents)
>Finally
>	Close Tables all
>entry
>The problem stems from the mis-spelling of endtry (I ommited the "D").
>
>Any ideas?
>
>Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform