$Direction

Indicates the direction in which focus was moving when an event occurs.

Syntax

$direction

Return Value

A number (-1, 0, or +1.) Can be reset by an application program.

Description

The direction of travel of focus when an event occurred.

Value

Meaning

-1

"Backward" direction. The focus was moving backward (with respect to the current TABORDER) when an event occurred.

0

No direction. The focus is not moving.

+1

"Forward" direction. The focus was moving forward (with respect to the current TABORDER) when an event occurred.

 

Related Topics