I am using a DTPicker control in a VFP6.0 form. I set the control's properties in the form Activate event, eg:
WITH oleDTPicker
.Day = 1
.Month = 2
.Year = 2003
.Refresh
ENDWITH
This works fine and the correct date is displayed.
A user selects a data set from another control in the form. I then want to reset the value displayed in the DTPicker to a date appropriate to that data set so, in the selection control's Click event, I have something like :
WITH THISFORM.oleDTPicker
.Day = m.NewDate
.Month = m.NewMonth
.Year = m.NewYear
.Refresh
ENDWITH
I have confirmed that this is a valid date and querying the individual properties and THISFORM.DTPicker.Object.Value all return the new date but the DTPicker still displays the original date!
How can I get the DTPicker control to refresh? All suggestions welcome!!
WITH oleDTPicker
.Day = 1
.Month = 2
.Year = 2003
.Refresh
ENDWITH
This works fine and the correct date is displayed.
A user selects a data set from another control in the form. I then want to reset the value displayed in the DTPicker to a date appropriate to that data set so, in the selection control's Click event, I have something like :
WITH THISFORM.oleDTPicker
.Day = m.NewDate
.Month = m.NewMonth
.Year = m.NewYear
.Refresh
ENDWITH
I have confirmed that this is a valid date and querying the individual properties and THISFORM.DTPicker.Object.Value all return the new date but the DTPicker still displays the original date!
How can I get the DTPicker control to refresh? All suggestions welcome!!