Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Severe situation on bug
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00537068
Message ID:
00537402
Vues:
34
>>>Be that as it may, it's still possible that my approach would circumvent the problem. If an Error event is triggered at all, you shouldn't need to depend on a non-local RETURN TO ... in this situation. A normal return from the Error handler to the offending code would suffice. Then you can invoke the appropriate context-specific error handling logic in normal code, after the Error handler is off the stack. The only time I use RETURN TO ... is for special cases of unanticipated errors, or if the user deliberately requests an Abort.
>>
>>Well, I can't apply such logic whenever we will use a COUNT function. We also do not control other programmers. So, some of them may use a COUNT and forget to include such implementation. It need to be control at the upper level.
>
>Why not write your own function, mfcount(lfield,oper,rfield)
>which checks for all the problems and returns either 0 or the actual count,
>executing VFP's count only when it is safe to do so?

This means we have to cover all applications in production. It has to be controlled at the error handler level.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform