Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the number ascii corresponding to - caracter?

Status
Not open for further replies.

todd666

IS-IT--Management
Dec 3, 2001
61
CA
Hi,

What is the number corresponding to - caracter?

Thank you.
 
Why this code doesn't work when I enter - and work on all other caracter?

[code}
Private Function ValidCharacters(InputData As String) As Boolean
Dim Counter As Long
Dim Character As Integer

' Make sure in uppercase, easier for checking
InputData = UCase$(InputData)

' Checks to see if every byte is a letter or number
For Counter = 1 To Len(InputData)
Character = Asc(Mid$(InputData, Counter, 1))
Select Case Character
Case 32, 45, 48 To 57, 65 To 90
Case Else: Exit Function
End Select
Next Counter

ValidCharacters = True
End Function
[/code]
 
Ok, I know what's wrong.

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top