I'm having a problem with the StrCaselessCompare function in a sort
function.

I have two string, "[555]" and "555". When calling StrCaselessCompare with
these strings, the function is indicating "[555]" comes before "555". I'm
expecting the opposite since the ASCII value of [ is 91 (decimal) which is
greater than the ASCII value of 5 is 53 (decimal).

The following is the test using and the value returned is -65.

       int iTest;
       iTest = StrCaselessCompare("[555]", "555");


Does anyone know why I'm getting this result?

Regards,
Mike



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to