>I am creating a form using Codebook for Mere Mortals. I downloaded Calendrx from the forum and cannot get it to work. When I bring up the form it chokes on the setvals() method of txtDate.
>
>WITH This.Parent.oleCalendar
> .Month=Month(This.Value)
> .Day=Day(This.Value)
> .Year=Year(this.Value)
>ENDWITH
>
>In the watch window I see that the system knows that the parent is correct, but it does not recognize the child oleCalendar. I have triple checked that the Name property is correct. I recreated the oleCalendar object withing the Calendarx visual class. I neither helped not hurt.
>
>Any ideas would be welcome. Thanks.
>
>Tom Weymann
Do you have VFP6 installed? If you do, it loads a new version of the calendar control that is not compatible with the this.value references. Check in your VFP Tools/Options menu and see which calendar control is registered. I think yours will probably say "MS Calender 8.0" instead of the normal "Calendar Control" that came with VFP5. "this.value" can be changed to "this.object.value" and it should work. The VFP5 OCX was MSACAL70.OCX and the VFP6 OCX is MSCAL.OCX.