If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > String Validation Using Vb script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-04, 21:22
Wajahat_Kaleem Wajahat_Kaleem is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
Question 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
Reply With Quote
  #2 (permalink)  
Old 06-05-04, 11:30
MrWizard MrWizard is offline
Registered User
 
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
Reply With Quote
  #3 (permalink)  
Old 06-06-04, 19:16
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On