-
Jan 11th, 2022, 07:46 PM
#1
Thread Starter
Lively Member
Validating MaskEdBox Input
Hi,
I have a masked edit control with "AA - 99 - 9999" as the input mask. This results in "__ - __ - ____" visually presented to the user when a value is not yet present in the control. I would like to detect the following cases to assist in validating user input:
a) One or more underscore (mask) characters,
b) All zeroes (00 - 00 - 0000)
The all zeroes requirement is a bit trickier as "00 - 00 - 0001", "00 - 01 - 0000", "01 - 00 - 0000" should be treated as valid values (as there is at least one non-zero value in the input string). Characters from A to Z should also count toward the string being valid.
Any and all assistance is greatly appreciated!
Best Regards
Brad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|