Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error message from number
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00468523
Message ID:
00468557
Vues:
18
Methinks I am not being clear today. :)

My whole objective was to avoid having to write a procedure to handle the error. Because this isn't a global error handler, and only used by a snippet of code, I wanted to just have the error assigned to a global variable and process it within the snippet itself.

Since there is apparently no built-in function to retrieve the error message, and I know no way to assign different values to two variables in the same line, I'll just write the error handler program.

Thanks,

Michelle


>ON ERROR DO MY_ERRORTRAP WITH ERROR(), MESSAGE(), PROGRAM()
>
>will pass those parameters to your error procedure. Then you can do whatever you want with those values.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform