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

KeyAllowCursor

Allows (or disallows) the command cursor to move to the specified AN or to all ANs. The command cursor normally moves only to ANs that have commands defined.

Syntax

KeyAllowCursor(AN, State)

AN:

The AN where the command cursor can move. If 0, all ANs are implied.

State:

Allow state:

0 - Do not allow the cursor to move to this AN.

1 - Allow the cursor to move to this AN.

Return Value

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

Related Functions

KeyGetCursor

Example

KeyAllowCursor(20,1);
! Allows the command cursor to move to AN20.
KeyAllowCursor(0,1);
! Allows the command cursor to move to any AN.

See Also

Keyboard Functions