Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My date will not save to my variable
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Vista
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01370368
Message ID:
01370412
Views:
24
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform