Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Works in VFP 7 but not in VFP 6
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Works in VFP 7 but not in VFP 6
Miscellaneous
Thread ID:
00660000
Message ID:
00660000
Views:
64
I'm using the following commands in the show method of a form to set a DTPicker control:
thisform.olecontrol1.objECT.Month=MONTH(DATE())
thisform.olecontrol1.objECT.Day=DAY(DATE())
thisform.olecontrol1.object.Year=YEAR(DATE())
This code works in VFP 7 (I used it because of intellisense), but when I ran in form in VFP 6 I get the error message saying:
OLE error code 0x80020005: Type Mismatch
It occurs on all three lines.

The OleClass of the control is MSComCT2.DTPicker.2


Any thoughts.

Kirk
Next
Reply
Map
View

Click here to load this message in the networking platform