Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Ord... (https://www.delphipraxis.net/109011-ord.html)

dominikkv 22. Feb 2008 20:04

Re: Ord...
 
Zitat:

Zitat von Nils_13
Hm, ob ich Key = Ord('#') oder Key = 35 ist leider kein Unterschied vom Ergebnis her.

vom Ergebnis nicht, aber von der Geschwindigkeit...

Zitat:

Zitat von Nils_13
Und wie kommst du auf 191 ?

Zitat:

Zitat von Helmi
Delphi-Quellcode:
  //Gibt die Nummer des Zeichens aus
  ShowMessage(IntToStr(Key));


Helmi 22. Feb 2008 20:06

Re: Ord...
 
Ich war schneller :-)

Ich hab dir jetzt 2 Möglichkeiten gezeigt.
Einmal KeyPress und einmal KeyDown (was du ja verwenden willst)

sx2008 23. Feb 2008 16:05

Re: Ord...
 
nur zur Info:
Ord() ist keine echte Funktion, sondern eine Inline-Funktion.
Es erfolgt also kein Funktionsaufruf, sondern die Umwandlung ist im Prinzip mit einem Assemblerbefehl erledigt.


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:04 Uhr.
Seite 2 von 2     12   

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