Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004
    Posts
    2

    Question Unanswered: String Validation Using Vb script

    Is there any function in vb script that helps us to check that the entered input in textbox is Alphabet
    PLZ

  2. #2
    Join Date
    Mar 2003
    Location
    Atlanta, GA
    Posts
    191
    Not sure what you're after.... maybe I'm missing your point.... but ALL form element values passed via POST or GET are ALWAYS passed as Strings. You can convert the passed values to integer, date, or whatever as needed, once the variables are requested on the page.... but they all get passed as strings.

    Tim
    Tim

  3. #3
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    I assume that what you are trying to do is make sure all characters entered are a-z or A-Z. I don't know of a specific function that will do this for you, but you can write one easily enough. Basically you "walk" through the string and check the ascii code for each letter and check to see if it falls into a certain range.

Posting Permissions

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