Peter Kiers
asked on
How to get the hexadecimal-value of a key in KeyPress?
I have been looking for hours to get the hexadecimal-value of a key pressed shown in my statusbar
I made this:
Private
fLastKey : word
procedure TDSP3270.KeyPress(var Key: Char);
begin
fLastKey := key ;
end;
[Error] DSP3270.pas(414): Incompatible types: 'Word' and 'Char'
Is it possible to convert a char to a word?
P.
I made this:
Private
fLastKey : word
procedure TDSP3270.KeyPress(var Key: Char);
begin
fLastKey := key ;
end;
[Error] DSP3270.pas(414): Incompatible types: 'Word' and 'Char'
Is it possible to convert a char to a word?
P.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER