Jump to content

Can get _RegEx_RestrictControl_add to work with an input format


Recommended Posts

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?

Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...