Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calendrx Problem
Message
From
24/08/1998 17:31:33
 
 
To
24/08/1998 16:15:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00129459
Message ID:
00129475
Views:
16
>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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform