keylset(TCLX)

keylset(TCLX)


keylset -- set the value of key in the keyed list contained in the variable listvar

Syntax

keylset listvar key value [key2 value2 ...]

Description

Sets the value associated with key, in the keyed list contained in the variable listvar, to value. If listvar does not exist, it is created. If key is not currently in the list, it will be added. If it already exists, value replaces the existing value. Multiple keywords and values may be specified, if desired.