I'm about to upgrade to D2009 and I'm running into some troubles regarding
char and AnsiChar.
I have a function that checks if a char is in uppercase or lowercase.
The declaration looks like this:
function CharIsUpper(c: char): boolean;
and the call to the function looks like this:
if CharIsUpper(myString[i]) then
But when I try to compile it in Delphi 2009 I get this errormessage at the
callingpoint:
"E2010 Incompatible types: 'AnsiChar' and 'Char'"
What's the best to do for me if I want the function to act in D2009
exactly as it did in D2006?
Should I change the declaration to look like this?
function CharIsUpper(c: WideChar): boolean;
or is it a better way around the problem?
//Jesper
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi