General information
Category:
Coding, syntax & commands
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only