We have dbedit boxes for date fields with this mask on the field: !99/99/9999;1;_
We have never had problems with this mask before (nor am I certain it's a mask problem now).
We use the settext event on the table component to verify that the date entered is valid. After that there are a number of business logic verifications that we push the date through. For some reason, the edit.text for dates that include leading zeroes are coming up wrong. If we enter 11/17/2002 there is no problem, but if we enter 01/01/2003 then the edit.text reads as ' /1///203'. On the screen, it displays the correct looking value, but when we enter the edit box it shows '_1/_1/2003'.
Anyone seen anything like this before? We recently switched to WinXP, and haven't worked on that project much since we switched to delphi 6. Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
We have never had problems with this mask before (nor am I certain it's a mask problem now).
We use the settext event on the table component to verify that the date entered is valid. After that there are a number of business logic verifications that we push the date through. For some reason, the edit.text for dates that include leading zeroes are coming up wrong. If we enter 11/17/2002 there is no problem, but if we enter 01/01/2003 then the edit.text reads as ' /1///203'. On the screen, it displays the correct looking value, but when we enter the edit box it shows '_1/_1/2003'.
Anyone seen anything like this before? We recently switched to WinXP, and haven't worked on that project much since we switched to delphi 6. Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole