Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MonthView and GetDayBold error -- again
Message
De
20/08/2001 01:47:17
 
 
À
19/08/2001 23:38:53
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:
00546038
Vues:
22
>I have found several posts here and elsewhere about a problem with the MonthView control blowing up with a Type error in the GetDayBold event when changing months, but have not seen any resolution or acknowlegement that it is a but in the control of VFP. I am not using the event, it just blows up there. Specifically the error is:
>
>Error #: 1426
>Message: OLE error code 0x80020005: Type mismatch.
>Method: GetDayBold
>
>I am using VFP6 SP4 with MSCOMCT2.OCX version 6.0.88.4 on Win2k SP2
>
>Anybody got any new information on this?
>
>Thanks...

I don't see the error. What exactly are you doing with the MonthView control to make it happen? Are you using Date type variables or DateTime type values? You can set the value with either a Date or DateTime type value but it always returns a DateTime type value.
thisform.oMonthView.Object.Value = DATE()
This works OK.
WAIT WINDOW TYPE("thisform.oMonthView.Object.Value") + " " + TRANSFORM(thisform.oMonthView.Object.Value)
This always returns a datetime type value.
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform