>>>TIA
>>Hi Dave,
>>
>>Are you using the MS Calendar control (which is MSCAL.OCX, BTW)? If I recall correctly, there were some problems with setting the .Value property. The workaround was to set the .Day, .Month, and .Year properties (at least that's how I did it). You can, however, retrieve the selected date with the .Value property.
>>
>>hth,
>No I am using the Calendar Control which comes with the ActiveX Controls in VFP5. Since it runs on my PC I figure that I have probably screwed up the installation some way or another.
>
Hi Dave,
We're talking about the same thing only the name of the control is MSCAL.OCX. I got the same result as you when I tried to assign the .Value property directly. with This.Value = DATE() - 1 in the object's .Init method. However, when I changed that to:
lddate = DATE() - 1
This.Day = DAY(lddate)
This.Month = MONTH(lddate)
This.Year = YEAR(lddate)
Worked like a champ.
Interestingly, the .Value property does not show up in the debugger. However, one of my classes accesses this property after a date has been selected, and its form hidden. As I said, this is the workaround.
hth,
George
Ubi caritas et amor, deus ibi est