Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calendar
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00454152
Message ID:
00454191
Views:
24
>>>VFP 5.0
>>>
>>>I have been using the calendar ole in one of my apps for quite a while with no problem... until now. In the Init Event of the calander ole I have: THIS.VALUE = DATE() and has worked fine. But now when the app opens debugger stops on that line with the dialog box stating: Property VALUE is not found. No changes were made to that ole, but I probably made a change somewhere else that has affected it and I can't put my finger on it... HELP!!!
>>>
>>>Thanks In Advance,
>>>Craig
>>
>>Change the line to this.Object.Value
>>Some changes were made to ActiveX controls which standardized on this structure - which of course, broke some code :)
>
>You can also break down the date into the controls 3 properties of This.Day, This.Month and This.Year if you do not use the This.Object.Value property.

Mark,

What follows applies to the MS Calendar 8.0 control.

I've been working on a personal project with this control and what I've learned might be of interest.

First, the Value property still exists.

Second, and maybe more interestingly, is that, under certain circumstances, you must set this (the value) property. Failing to do so will result in no value being displayed. Setting the Year, Month and Day properties does nothing.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform