Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Be careful with Ord function in Unicode Delphi versions (https://www.delphipraxis.net/171371-careful-ord-function-unicode-delphi-versions.html)

DP News-Robot 3. Nov 2012 11:10

Be careful with Ord function in Unicode Delphi versions
 
Here is a simple test: program OrdTest; {$APPTYPE CONSOLE} uses SysUtils; begin try Writeln(Ord('?'), ' ', Ord(Char('?'))); // 223, 1071 Assert(Ord('?') = Ord(Char('?'))); // Fails except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; ...http://feeds.feedburner.com/~r/delph...~4/TpSd9eZM_fw

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:28 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz