RAD Studio (Common)
ContentsIndex
PreviousUpNext
H2451 and W1061: Narrowing given WideChar constant (#$%04X) to AnsiChar lost information (Delphi)

An AnsiChar can only represent the first 256 values in a WideChar, so the second byte of the WideChar is lost when converting it to an AnsiChar. You may wish to use WideChar instead of AnsiChar to avoid information loss.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!