Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Error...Ok in VFP6 not in VFP7
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00551946
Message ID:
00552935
Vues:
24
Ahhh... I figured it out at last. There is somebody who put in ON ERROR DO Errtrap wihtout parameters in one of our form class. We have two form class actually: one for dialog boxes set as modal and one for regular forms set as modeless.

Thanks for giving me a hint.

>Yes. It's weird. It works perfect in VFP6 that's why I wonder what happened in VFP7?
>
>ON ERROR DO errtrap WITH ERROR(), PROGRAM(), LINENO()
>
>PROCEDURE errtrap (nError, cProgram, nLine)
>etc.
>
>nError, cProgram, nLine returns .F.
>
>>Jess,
>>
>>Neither of functions ERROR(), PROGRAM() or LINENO() returns .f. It looks like actual line of code is
ON ERROR DO ERRTRAP
Only this way can you get all .f. as parameter values in ERRTRAP program.
>>
>>>Our forms are subclassed from our custom set of classes. In the main program, I have that ON ERROR.. line of code. The errtrap is a separate program.
>>>
>>>TA
>>>>>It works modular but if error is inside the form, it does not. I don't know why?
>>>>>
>>>>>The errtrap program is successfully invoked but parameters are always .F.
>>>>< SNIP >
>>>>
>>>>Hi Jess,
>>>>
>>>>Works for me. Below's my test code. Can you post your code that reproduces the problem?

>>>>ON ERROR DO ERRTRAP WITH ERROR(), PROGRAM(), LINENO()
>>>>
>>< SNIP >
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform