Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the Microsoft MonthView Active X Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00254729
Message ID:
00254746
Vues:
22
Doug,
As your luck would have it, I got off the phone with VFP tech support
today on a similar issue. The problem I had was with the daybold property.
It turns out that this control has problems with VFP and doesn't convert
types properly. For example, the following code from the help file
will not work with VFP:
form1.olecontrol1.daybold(form1.olecontrol1.visibledays(1)) = .t.

the workaround is
form1.olecontrol1.object.daybold(ttoc(datetime())) = .t.

Be sure to use the ttoc() function for all dates passed to the control (this is not documented anywhere), and use the .object.property syntax of the control.

HTH
Ed


Hi All,
>
>Anyone run into this problem:
>
>I am trying to use the Microsoft MonthView control (version 6), and I am having a problem where I get an OLE Error blah blah, which essentially means that there is a type mismatch. Everything points to the GetDayBold event. Here's the catch:
>
>If I use a form (not a form class), I don't get the error, but if I use a form class, I get the error. Also, if I use a form class not based on the framework outside of my application, I don't get the error.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform