Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to generate an error in calling program
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00699719
Message ID:
00699745
Vues:
17
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform