CharInSet Compiler Warning in Delphi XE4
问题 I have following statement in my Delphi 7 code. TMyCharSet = set of char; When I migrated that code to Delphi XE4, I am getting following compiler warning at above line. W1050 WideChar reduced to byte char in set expressions. Consider using 'CharInSet' function in 'SysUtils' unit. How should I redeclare TMyCharSet? 回答1: You get the warning because XE4 uses WideChar for variable of Char type (and WideString for String), so Char takes 2 bytes instead of 1 byte now. Now it is possible to keep