Link to home
Start Free TrialLog in
Avatar of Peter Kiers
Peter KiersFlag for Netherlands

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.
ASKER CERTIFIED SOLUTION
Avatar of 2266180
2266180
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Peter Kiers

ASKER

OK.