Link to home
Start Free TrialLog in
Avatar of eryan
eryan

asked on

Mask Edit Box / Date Validation

I'm using a maskEdBox with a format of dd-mmm-yyyy and a
mask of ##/##/####. It works fairly fine if I
enter something like "30121998", but if I enter just "30131998" and tab off the control it doesnt check if a valid date has been entered. Is there a switch I can set to force this validation or do I have to write a little checkroutine and call it in the LostFocus of the MEDBox.
Avatar of vmano
vmano

ya, i think you have to write a date validation in the lostfocus of that MEDBox. you can probably use IsDate function to check for valid dates. also check for help on IsDate function.

let me know if this helps
vmano

Avatar of eryan

ASKER

IsDate is perfect. Return me your comment as a suggested solution and I'll forward you the points. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of vmano
vmano

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial