General information
Category:
The Mere Mortals Framework
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only