fixed IsCharAlphaNumeric to test for numbers too

git-svn-id: trunk@7537 -
This commit is contained in:
mattias 2005-08-22 00:24:43 +00:00
parent 16bf8eb0b8
commit 70d2949737

View File

@ -1112,8 +1112,7 @@ end;
Function IsCharAlphaNumeric(c : Char) : Boolean;
begin
// your code here
Result := False;
Result := ((ord(c) >= 65) and (ord(c) <=90) ) or ((ord(c) >= 97) and (ord(c) <=122) );
Result := c in ['a'..'z','A'..'Z','0'..'9'];
end;
{------------------------------------------------------------------------------