Sign in to follow this  
Followers 0
ijourneaux

Can get _RegEx_RestrictControl_add to work with an input format

3 posts in this topic

I am probably going to kick myself on this but I cant seem to get a simple format to work with _RegEx_RestrictControl_add. The format gets added with out an error but I cant' enter enything in the input field.

I am looking to restrict input to a letter and 4 numbers

_RegEx_RestrictControl_add ($JobNumber, "^[A-Z]{1}[0-9]{4}$","K1234")

With this I cant enter anything in the field.

Also It doen't appear that you can backspace to remove the first character? I think that was mentioned in some of the posts as well. Was this resolved or is it just something you ahve to live with.

Other examples use RegexStringReplace directly. Any recomendations on the best approach to limiting user data entry?

Share this post


Link to post
Share on other sites



Guess you're assuming we know non-standard UDF/Otherwise functions?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Just hoping someone else was using the _RegEx_RestrictControl_add UDF.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0