eramgarden
Programmer
I have 3 string:
ABCD,
1000
UA89 OR A80C ( any combination of number and letter)
I want to determine if the string passed is Alpha Numeric..
====
this is what I have:
Const cnstNumber = "0123456789"
Const cnstAlpha = "ABCDEFGHIJKLMNOPQRSTXYZV"
If (InStr(cnstAlpha, Left(strsitecode, 1)) = 0 And InStr(cnstNumber, Right(strsitecode, 1)) > 0) Then
<..code here ...>
end if
====
That works for ALL numbers, for ALL letters BUT NOT for AlphaNumeric...
any ideas? thanks
ABCD,
1000
UA89 OR A80C ( any combination of number and letter)
I want to determine if the string passed is Alpha Numeric..
====
this is what I have:
Const cnstNumber = "0123456789"
Const cnstAlpha = "ABCDEFGHIJKLMNOPQRSTXYZV"
If (InStr(cnstAlpha, Left(strsitecode, 1)) = 0 And InStr(cnstNumber, Right(strsitecode, 1)) > 0) Then
<..code here ...>
end if
====
That works for ALL numbers, for ALL letters BUT NOT for AlphaNumeric...
any ideas? thanks