Difference between revisions of "GetKeyCode"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function GetKeyCode(const Key: Char): Byte; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Returns the ke...")
 
 
Line 5: Line 5:
  
 
==Availability==
 
==Availability==
SCAR Divi 3.00 > Current
+
SCAR Divi 3.00 > 3.34
  
 
==Description==
 
==Description==
Line 22: Line 22:
 
  65
 
  65
  
[[Category:Functions]]
+
[[Category:Deprecated Functions]]
[[Category:Keyboard Functions]]
 

Latest revision as of 22:09, 11 October 2012

Definition

function GetKeyCode(const Key: Char): Byte;

Availability

SCAR Divi 3.00 > 3.34

Description

Returns the key code associated with the character defined by Key used to send keys.

Example

begin
  WriteLn(GetKeyCode('a'));
  WriteLn(GetKeyCode('A'));
end.

Output:

65
65