Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error message from number
Message
From
25/01/2001 12:11:07
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00468523
Message ID:
00468557
Views:
13
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform