DQBasc
FUNCTION

Prototype

DECLARE FUNCTION DQBasc(BYVAL ScanCode,BYVAL ShiftFlag)

Parameters

ScanCode - Scancode of the character

ShiftFlag - See function description

Returns

An INTEGER value holding the ascii code number of specified character

Description

This function is used to retrieve the ascii code of a specified character, when you know its scancode. The problem is that for each scancode there can be one or two associated characters... For example, the "A" character is associated to the scancode number 30, but also "a" is associated to 30; DirectQB has two internal tables holding all the possible combinations, so you must specify in which table to search for specified character. That's the purpose of the ShiftFlag parameter: if true, in our example you'll get an "A", otherwise an "a".

Notes:

This function can be called even if the keyboard handler is off.