Was ist Sinnvoller:
Code: Alles auswählen
case key of
VK_Back: Form1.Caption:='Back-Taste'; // Dezimalwert 9, Hexwert $08
VK_A: Form1.Caption:='A'; // Dezimalwert 65, Hexwert $41
VK_B: Form1.Caption:='B'; // Dezimalwert 66, Hexwert $42
VK_C: Form1.Caption:='C'; // Dezimalwert 67, Hexwert $43
end;
Code: Alles auswählen
case key of
VK_A: Form1.Caption:='A'; // Dezimalwert 65, Hexwert $41
VK_B: Form1.Caption:='B'; // Dezimalwert 66, Hexwert $42
VK_Back: Form1.Caption:='Back-Taste'; // Dezimalwert 9, Hexwert $08
VK_C: Form1.Caption:='C'; // Dezimalwert 67, Hexwert $43
end;