Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Checks
#1
This is not my code, i found these examples. I don't remember where though...

Code:
Public Function IsAlpha(s As String) As Boolean
    If Not s Like "*[!A-Za-z]*" Then IsAlpha = True
End Function

Code:
Public Function IsAlphaNumeric(s As String) As Boolean
    If Not s Like "*[!0-9A-Za-z]*" Then IsAlphaNumeric = True
End Function

That's what I use in MR for our legal string checks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)