Do any of you have a routine that checks a string is alphanumeric. Not that it contains letters or numbers, but that it contains a combination of letters and numbers.
I tried this
But it doesnt work well.
It should work something like this:
If I enter "123456" it wont pass
If I enter "abcdef" it wont pass.
If I enter something like "abcdef2" it would pass.
I tried this
if length(trim(ip-passwd, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")) ne 0 then
assign op-error = op-error + "Passwords must contain a combination of letters and numbers.".
But it doesnt work well.
It should work something like this:
If I enter "123456" it wont pass
If I enter "abcdef" it wont pass.
If I enter something like "abcdef2" it would pass.