Next: log() Up: MacAnova Help File Previous: locks   Contents

lockvars()

Usage:
lockvars(a [,b,c,...] [,silent:T]), a, b, c, ... arbitrary variables
  other than GRAPHWINDOWS, CLIPBOARD, and SELECTION



Keywords: general, variables
lockvars(var1, var2, ...) marks variables var1, var2, ... as locked
variables.  This means they cannot be deleted or assigned to.  Any named
variables can be locked except for temporary variables (names beginning
with '@') and the "special" variables GRAPHWINDOWS, CLIPBOARD,
SELECTION.  A warning is printed if any argument is a built in function
name or is alreadly locked.  It is an error if any argument is an
expression or a function result.

lockvars(var1, var2, ..., silent:T) does the same except that no warning
message is printed.

When you save a locked variable (see save() and asciisave()), its locked
status is also saved so that when it is restored (see restore()), it
will still be locked.

Locking a variable does not protect it from destruction by restore().

See also unlockvars(), delete(), 'variables'


Gary Oehlert 2003-01-15