Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get OLE value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00271122
Message ID:
00271180
Vues:
27
>I was looking through a bunch of the OLE controls in the VFP library and ran across one called DTPicker. It can be used as either a date or time selector. It seems to look and act exactly like the one I had in mind to use with my project, but there's one problem: I can't figure out how to return the current value of the DTPicker box! There are minute, hour, day, month, etc fields, but they're write only. There is no value field.
>
>Has anyone had enough (any?) experience with this OLEControl to tell me how I can return the value (date or time) from this control to use in my application?
>
>Thanks!

Use OLEControl.Object.Value where OLEControl is the name of the Date/Time Picker control that you instantiate. The data type of this value is time.

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform