selena1
Programmer
- Apr 7, 2003
- 69
I have a trouble with using EditMask for fields in DBGrid. EditMask work fine with dates or time, but when I set EditMask for "Phone number" field that mask doesn't work. No mather on the EditMask I can set value, for example, "(065)12 - " ,but EditMask I have set so that correct value should be "(065)123-456". How can I solve this problem?
Also, when I set EditMask for "Phone number" and use DBEdit component, mask work fine, but in case that value that I had type incorrect I get a message "Invalid input value." How can I avoid seeing this message, so that I can use my own message (I wont to use my form with some message.). I don't wont to change "ResourceString" in DBConsta.pas. I have tried to use OnSetText event.
Thanks!
Also, when I set EditMask for "Phone number" and use DBEdit component, mask work fine, but in case that value that I had type incorrect I get a message "Invalid input value." How can I avoid seeing this message, so that I can use my own message (I wont to use my form with some message.). I don't wont to change "ResourceString" in DBConsta.pas. I have tried to use OnSetText event.
Thanks!