Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My date will not save to my variable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Vista
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01370368
Message ID:
01370412
Vues:
25
>I am using the MSComCtl2.DTPicker for the first time and just want the date to save to my variable. How do I do that? I've been trying things like...
>
>
>LostFocus
>   ldDatePicked = thisform.olecontrol1.value
>
Douglas,

You need to keep in mind that your VFP object is a container that has the OLE control inside of it so you need to tell VFP that you want the property of the item inside the OLEControl Container with syntax like;
LostFoucs
  ldDatePicked = Thisform.OLEControl1.Object.Value
The keyword Object in this syntax is referring to the OLE control that is inside the OLEControl Container.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform