>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.