NUMLOCK( ) Function

Example   See Also

Returns the current mode of the NUM LOCK key or sets the mode of the NUM LOCK key on or off.

Syntax

NUMLOCK([lExpression])

Returns

Logical

Arguments

lExpression

Turns the NUM LOCK key on or off. If lExpression is true (.T.), the NUM LOCK key is turned on; if lExpression is false (.F.), the NUM LOCK key is turned off. NUMLOCK( ) returns a logical value corresponding to the NUM LOCK key setting before NUMLOCK(.T.) or NUMLOCK(.F.) is issued.

Remarks

NUMLOCK( ) returns true (.T.) if the NUM LOCK key is on (pressing a key on the numeric keypad returns a number), or false (.F.) if NUM LOCK is off (pressing a key on the numeric keypad moves the cursor).