>lcAllInvalid = "" >for lnI = 1 to 255 > if not upper( chr( lnI )) $ "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" > lcAllInvalid = lcAllInvalid + chr( lnI ) > endif >endfor >>
>if len( cString ) <> len( chrtran( cString, lcAllInvalid, "" )) > */ if string lengths are different, an invalid char was entered >endif >Are you saying that the subset of invalid characters is limited too? I thought it's unlimited, since we can have chars in different languages...
If not empty(lcString,lcAllowedChars,"") ** You have invalid chars in the string endif