Mega Code Archive

 
Categories / Delphi / VCL
 

Virtual key constants

Question: Where are the VK_Key constants A-Z and 0-9 declared? Answer: They are not declared in Delphi, since they are simply the ordinal value for those keys. VK_0 thru VK_9 are the same as ASCII '0' thru '9' ($30 - $39) VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' ($41 - $5A).