02-04-2009, 03:29 PM
This is not my code, i found these examples. I don't remember where though...
That's what I use in MR for our legal string checks.
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.