Results 1 to 40 of 100

Thread: How to restrict users to enter first character as alphabet and rest as numeric.

Threaded View

  1. #1

    Thread Starter
    Member seraphicmortal's Avatar
    Join Date
    May 2005
    Posts
    56

    Resolved How to restrict users to enter first character as alphabet and rest as numeric.

    Hi! I'm new in VB6. I would like to know how to make a function that would restrict users to enter a 4 character code and the first character is any of the ALPHABET (A~Z) then the last 3 characters would be NUMERIC (0~9). It must not accept no other symbols and they cannot leave it blank (meaning null).

    Example:

    Valid code is C105 --> since first character is an alphabet and the rest is numeric

    Invalid codes are 9C32
    C+54
    null
    Last edited by seraphicmortal; May 24th, 2005 at 08:41 PM. Reason: RESOLVED!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width