Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calendar Control with VFP6.0 is different than 5.0's
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00103246
Message ID:
00103387
Views:
27
>>I used to be able to reference the .Value property directly in 5's but no
>>longer can in 6's. You must now reference it through oCal.Object.Value.
>
>That's an intentional change: when there's a potential conflict between an ActiveX Control's property and a VFP property, you have to refer to the Object.Property, instead.

That makes MUCH more sense to me. I was wondering why some properties could still be accessed without the .Object reference.

>
>>There also seems to be a problem with setting the value. I can't get that to
>>work in 6's, but you can set the .Month, .Day, .Year properties and at least
>>that works. Shouldn't you just be able to:
>>oCal.Object.Value = DTOT(DATE()) ?
>
>I was just able to get that to work by using oCal.Object.Value = DATE()<\CODE>. Have you tried?


I've tried setting it to Date type (including DATE()), datetime type, numeric, and character types. ALL of them produce the "type mismatch" error for me.

Fred
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform