Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi VB konstanten nach Delphi konstanten (https://www.delphipraxis.net/5240-vbulletin-konstanten-nach-delphi-konstanten.html)

Basic-Master 29. Mai 2003 09:44


VB konstanten nach Delphi konstanten
 
Hi,
wie kann man z.b.
Code:
&H38
in ne delphikonstante umwandeln?

jbg 29. Mai 2003 10:09

&H gibt an, dass es sich um eine Hexadezimalzahl handelt. In Delphi werden Hex-Zahlen ein "$" vorangestellt.
Code:
$38

Basic-Master 29. Mai 2003 10:12

thx :)

Christian Seehase 29. Mai 2003 10:43

Moin Zusammen,

was in diesem Zusammenhang eventuell noch interessant ist:

Die C-Typische Notation 0x für Hexzahlen wird von StrToInt auch korrekt verarbeitet.
Z.B. bringt der Aufruf von StrToInt('0xff') keinen Fehler, sondern gibt als Ergebnis, korrekt, 255 zurück.


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:59 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