Syntax

Command Description Return Value
Lock Locks the selected object(s) The number of objects locked

Abbreviation

None

Description

The Lock command locks the currently selected object(s). The Lock command can be used with Buttons, Contacts, and Stations. When an object is locked, it does not trigger its events when operated and if it has an indicator, it appears in the “locked” state. Unlock has the opposite effect as Lock.

The following table shows the various effect of locking or unlocking an object:

Object When Unlocked When Locked
Buttons Responds to presses normally, displays normal indicator states Does not trigger any actions, displays locked indicator state
Contacts Responds to closures normally Does not trigger any actions
Stations Station operates normally, all controls display normal indicator states Station is locked, all controls display locked indicator states

Examples

Button 1 Lock
Locks button 1.

Button 3>5 Lock
Locks buttons 3 through 5.

Station 7 Lock
Locks station 7.

See Also

Button, Contact, Station, Unlock