Information générale
Catégorie:
Codage, syntaxe et commandes
>Hmmm... I'm guessing that if you went through all that work, then there isn't a function. :)
>
>Thanks, but that's far more work than simply writing a method to handle the error. The problem was that I wanted to do something like:
>
>ON ERROR gnErrNum = ERROR() AND gcErrMess = MESSAGE()
>
>Which, of course, doesn't work. I was trying to avoid having to write a seperate method to assign those global variables, so I hoped to be able to just assign gnErrNum and derive the gcErrMess from that.
>
>It wouldn't be so bad if you could put procedures in methods. I just hate adding a method to the form that's only used in one little snippet of code. :)
>
>Thanks,
>
>Michelle
Look at AError() in help
If you wish, you can let that create a public array with the errornumber and message when an error occurs.
You can also pass error() and message() to your error function and store the last error information from there like mark said
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement