Vote UpVote

Delphi 2009+ quirk/bug: non-ASCII character constants

Delphi Haven – Consider the following declaration, which happens to be from the AutoCorrect component code I posted a couple of months or so ago: const RightDoubleQuote = '”'; As you can probably guess, RightDoubleQuote then gets assigned to the Key parameter of a control’s OnKeyPress event handler, as appropriate. Should work fine, right? Well, it indeed does in D2007 or earlier, but not in the D2010 trial I’ve been playing with (I assume it’s broken in D2009 too). Basically, RightDoubleQuote in D2010, like in D7 or D2007, is compiled as an AnsiChar; and since the Ansi and unicode ...
Favorite? Off-Topic? CR @ 2009-09-22 21:13


Visits: 339
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Charles Ardour
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)