I am puzzled beyond belief.
Using a MaskEdBox control to get a date input in Short Date format.
The Month and Year are pre-determined, so they appear as part of the
Input Mask.
I have code which creates an input mask from that data, leaving the DAY
section
as the only part of the mask that will accept input.
For example, when Month is January and Year is 1998:
strMask="\0\1/##/\9\8"
It works good until I try to place a value in the box
for the Day. Notice:
if I put in a number from 20-31,all is well BUT..
if I input a two-digit number that has '0' or '1'
as the first digit, the first digit is cut off!
In other words, if my code says..
MaskEdBox1.Text="13"
the box displays
01/3_/98
At runtime, though, the MaskEditBox responds to input as expected.
Thank you, anyone who can tell me what's going on!
(setting MaxLength to 8 or 12 made no difference)