Autor Beitrag
F.Art
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Do 08.07.04 20:20 
Ich habe zB den variablen Wert X=(C0) und möchte ein schleife machen die von X 10 Werte zurück geht und von da an 20 Werte abzählt aber wie realisiere ich das mit HEX Werten?
Muetze1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 346



BeitragVerfasst: Do 08.07.04 20:39 
Moin!

Das ist doch nur eine Darstellungsform! Du kannst doch auch ganz einfach mit Dezimalzahlen nutzen und einfach nur die Ausgabe in Hex machen...

ausblenden Quelltext
1:
2:
For i := ($c0-10) To $co+10 Do
  ShowMessage(IntToHex(i, 2));


MfG
Muetze1
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 08.07.04 20:43 
das wollte ich doch grade schreiben...das $-Zeichen bewirkt, dass die Zeichenfolge als Hex-Zahl interpretiert wird.

_________________
We are, we were and will not be.