Subject | blank edit mask for date fields |
---|---|
Author | paulfilmer |
Post date | 2002-02-15T04:40:42Z |
Howdy Group,
I've searched everywhere but can't seem to find the solution to this
problem:
All of our date fields come up with the edit mask 'xx/xx/xxxx' in our
edit controls (DBEdit etc). I know how to change the mask, but what I
want is *NO* mask at all. ie let the user have complete control.
Essentially, I want to know how to allow null dates into the
database. Eg if I edit a record, and the DBEdit box
shows '14/02/2002', I can blank out all the numbers to
get ' / / '. However Delphi then complains that ' / / ' is
not a valid date!
Any ideas?
Thanks in advance...
Paul.
I've searched everywhere but can't seem to find the solution to this
problem:
All of our date fields come up with the edit mask 'xx/xx/xxxx' in our
edit controls (DBEdit etc). I know how to change the mask, but what I
want is *NO* mask at all. ie let the user have complete control.
Essentially, I want to know how to allow null dates into the
database. Eg if I edit a record, and the DBEdit box
shows '14/02/2002', I can blank out all the numbers to
get ' / / '. However Delphi then complains that ' / / ' is
not a valid date!
Any ideas?
Thanks in advance...
Paul.