Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calendar Control with VFP6.0 is different than 5.0's
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00103246
Message ID:
00103387
Vues:
26
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform