<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Some clients are receiving the above message in my
app.</FONT></DIV>
<DIV><FONT face=Arial size=2>A google search finds the exact same
message/address in other applications but doesn't offer a solution. It
could be related to this function. Can anyone see anything wrong with
this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>function LCase(Ch: Char): Char;<BR>begin<BR>
Result := Char(CharLower(Pointer(Ch)));<BR>end;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>CharLower accepts an ascii character
<STRONG>or</STRONG> an address of a string (pChar). The Delphi compiler
only recognises a pChar for the parameter and doesn't accept a character, so
Pointer(Ch) gets around this. It works fine here during testing, but it's
something I modified recently so I thought I had better check it out with
you experts.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm doing this to lowercase portions of a string,
and CharLower takes into account the windows locale for foreign
languages. </FONT><FONT face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV></BODY></HTML>