Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Works in VFP 7 but not in VFP 6
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00660000
Message ID:
00660053
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
Kirk,

In addition to Cetin's code, if you set each property individually, make sure that you set the .Day property to 1 first. Then set the Year and Month, then set the day to the intended day. Otherwise if the previous value of the day property is 31, when you are changing the month, you will get an error if the new month does not have 31 days in it.
thisform.olecontrol1.objECT.Day=1
thisform.olecontrol1.objECT.Month=MONTH(DATE())
thisform.olecontrol1.objECT.Day=DAY(DATE())
thisform.olecontrol1.object.Year=YEAR(DATE())
HTH,
Kurt
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform