Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handler
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00458265
Message ID:
00458330
Vues:
17
>In VFP one needs to be careful about using the phrase "error event" as a generic term, because this is likely to be confused with VFP's Error Event method. An error triggers either an Error Event method, or an ON ERROR handler, or VFP's default error handler. I think John's original question was referring to the standard nLine argument that applies to all Error Event methods. There is no absolute standard, however, as to the arguments passed to an ON ERROR handler - you just have to be consistent about it. Typically you would want to pass at least the line # argument to an ON ERROR handler, because this is the one value that CAN'T determined by the ON ERROR handler itself. (If you try to obtain lineno() in the handler procedure, you'll get the line # within the handler, not the one where the error occurred.)
Thanks -
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform