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...")
(No difference)

Revision as of 15:57, 2 July 2011

Definition

function GetKeyCode(const Key: Char): Byte;

Availability

SCAR Divi 3.00 > Current

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