Block::lockv Dialog::lockv

Details

  • This message is generated when a locked symbol is used as a local variable.
  • Locked symbols cannot be used as local variables in Block, or in the DialogSymbols option of Dialog.
  • A symbol sym is locked if Attributes[sym] includes Locked.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[Block::lockv].

Examples

Basic Examples  (1)

The symbol List has the Locked attribute; List cannot be used as a local variable in Block:

Any symbol that is not locked can normally be used as a local variable in Block: