Cicode Programming Reference > Cicode Function Categories > Keyboard Functions Introduction > KeyBs

KeyBs

Removes the last key from the key command line. If the key command line is empty, this function will not perform any action.

You should call this function using a "Hot Key" command (as shown in the example below), otherwise the backspace character is placed into the key command line and the command does not execute. A "Hot Key" command is a command that executes as soon as it is placed into the key command line.

Syntax

KeyBs()

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

KeyGet

Example

System Keyboard

Key Sequence

*Bs

Command

KeyBs()

Comment

Define a backspace Hot Key

(*) represents a HotKey command)

/* If  "START  A  B  C" is in the key command line and "START" is 
the Key Name for the "F1" key: */
KeyBs();
! Removes ASCII "C".
KeyBs();
! Removes ASCII "B".
KeyBs();
! Removes ASCII "A".
KeyBs();
! Removes Key_F1.
KeyBs();
! Performs no action.

See Also

Keyboard Functions