Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
[VFP7](Re)setting/not using the AERROR() array
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00781438
Message ID:
00784796
Views:
13
>You might be able to get away with "clearing" the error by generating one of your own:
>
>ERROR "My Error"
>
>This form of the error command will generate an error 1098 with "My Error" as the text. At least that way you could tell if any other code has generated an error after you've "reset" the error to this state.

Yes, using ERROR "My Error" fills the AERROR() routine, but I cannot use for example:

=AERROR( aErrorMsg ) && Save the error (if any)
ERROR "My Error" && Generate a custom error
AERROR = aErrorMsg && Restore the saved error


I want to restore any previous errors, or not use/generate my own error.
Previous
Reply
Map
View

Click here to load this message in the networking platform