CAPSLOCK( ) Function

Example   See Also

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

Syntax

CAPSLOCK([lExpression])

Returns

Logical

Arguments

lExpression

Include to turn the CAPS LOCK key on or off. CAPSLOCK(.T.) turns CAPS LOCK on and CAPSLOCK(.F.) turns CAPS LOCK off. A logical value is returned corresponding to the CAPS LOCK setting before CAPSLOCK(.T.) or CAPSLOCK(.F.) is issued.

Remarks

Issuing CAPSLOCK( ) with no argument returns true (.T.) if CAPS LOCK is on, or false (.F.) if CAPS LOCK is off.