Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to generate an error in calling program
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00699719
Message ID:
00699745
Views:
19
>The problem you face is that no VFP error is actually created by the vast majority of API call error returns, so there's nothing to catch the error spontaneously. Further, not all API functions return a consistent value for - in some cases, a 0 represents ERROR_SUCCESS, other times, it indicates a failure. You have to code each API call separately.

In my case 0 alway represents success. And all return values have the same meaning. That is why I want to handle errors in one place.
Previous
Reply
Map
View

Click here to load this message in the networking platform