Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MonthView and GetDayBold error -- again
Message
De
20/08/2001 22:29:54
 
 
À
20/08/2001 18:02:07
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00546030
Message ID:
00546566
Vues:
19
>OK. Here's the story:
>
>Changing the month on the MonthView by clicking on the Next Month or Previous Month buttons or by clicking on a visible date not in the current month invokes the form's Error method. In my case, the CodeBook 6.1 form has an error handler in the base form class, so it reports the error.
>
>The interesting thing is that if I remove all code from the Error event, the FoxPro error handler is not invoked and the control works just fine. Actually, if I Ignore the error the control works fine too.
>
>Now the question becomes: Where do I point the finger of blame for this situation? The MonthView control for somehow invoking the Error event? FoxPro for not fielding the error if I have no code in the Error event? Or is it just that "This behavior is by design"?
>
>...Jim

You're right, it is firing the error method. It's error 1426, "OLE error code 0x". I guess you could just trap for that and skip it, but I don't see why it happens, either. Nothing I've tried seems to get rid of the error (SYS(2333) or _VFP.AutoYield in the form Load, NODEFAULT in the object Refresh method).
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform