Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Cash
  Where is Ken Cash?
 Fort Worth
 Texas - United States
 Ken Cash
 To: Al Klapperich
  Where is Al Klapperich?
 Ripon, WI
 Wisconsin - United States
 Al Klapperich
 Tags
Subject: RE: DTPicker ActiveX control minium value
Thread ID: 191 Message ID: 261 # Views: 4 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Monday, May 21, 2001 11:01:09 AM         
   


> Hi,
>
> Does anyone know of a way to bypass DTPicker's Minimum date value check?? I have a date field that is blank (it will be filled in later) and DTPicker returns an error saying it's less than the minimum value. Bottom line is that it requires a date.
>
> Or is there something similar I can use that will allow blank dates?
>
> Thanks,
>
> Al

I don't know if you've gotten an answer to you problem yet, but here is the work around that I use...

When I first initialize the control and do not have data to assign to it, I assign the NULL value.

My DateTime picker control is named loMinistry...

if not empty(loMinistry.mdob)
.pgGeneral.oMDOB.object.value = loMinistry.mdob
else
.pgGeneral.oMDOB.object.value = NULL
endif

If the user selects a date, the control is updated with the new value.

When I'm ready to save the data from the control, I check for the NULL value and act accordingly...

if not isnull(.pgGeneral.oMDOB.object.value)
loMinistry.mdob = .pgGeneral.oMDOB.object.value
else
loMinistry.mdob = {}
endif

Hope this helps...
Ken


ENTIRE THREAD

DTPicker ActiveX control minium value Posted by Al Klapperich @ 5/16/2001 5:06:57 PM
RE: DTPicker ActiveX control minium value Posted by Paul Culbertson @ 5/16/2001 11:10:11 PM
RE: DTPicker ActiveX control minium value Posted by Thomas Holt @ 5/17/2001 4:16:28 AM
RE: DTPicker ActiveX control minium value Posted by Eric den Doop @ 5/17/2001 4:35:19 AM
RE: DTPicker ActiveX control minium value Posted by Paul Culbertson @ 5/17/2001 8:30:51 AM
RE: DTPicker ActiveX control minium value Posted by Al Klapperich @ 5/17/2001 9:55:29 AM
RE: DTPicker ActiveX control minium value Posted by Ken Cash @ 5/21/2001 11:01:09 AM