开发者

How to validate a data field for A-Z, 0-9 and "*" in SQL Windows?

开发者 https://www.devze.com 2023-01-15 05:40 出处:网络
I\'m trying to define the input mask for a field in SQL Windows. I now that setting \"AAA\" would make the field accept anything from A to Z; \"999\" would make it a开发者_Python百科ccept any number.

I'm trying to define the input mask for a field in SQL Windows. I now that setting "AAA" would make the field accept anything from A to Z; "999" would make it a开发者_Python百科ccept any number. But how do I make it able to accept the "*" char?


AFAIK you can't. At least according to the SQLwindows 2.1 documentation input masks only support numbers and alphabetic characters.
Have you considered creating your own class? Intercepting the SAM_AnyKey-message and checking the characters against your mask should do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号