Fires when the user presses a character key.
Parameters
Parameter | Description |
---|---|
Character | The character pressed |
Shift | Indicates whether or not the SHIFT key is down |
Ctrl | Indicates whether or not the CTRL key is down |
Alt | Indicates whether or not the ALT key is down |
RepeatCount | The number of times the keystroke is repeated when user holds down the key |
Remarks
The OnChar event fires when the user presses a character on the keyboard. The Character parameter contains the character being pressed. The Shift, Ctrl, and Alt keys indiciate the status of the SHIFT, CTRL, and ALT keys respectively. If any of these keys are pressed, then the respective parameter is 1. The RepeatCount parameter is a count of how many times the character has been repeated due to holding the key down.
Example
Transfer Param1 to Character Transfer Param2 to Shift Transfer Param3 to Ctrl Transfer Param4 to Alt Transfer Param5 to RepeatCount If RepeatCount EQ 0 then // A character haas been pressed for the first time end