Version 0 of array set

Updated 2003-09-19 16:16:07

array set arrayName list

Sets the values of one or more elements in arrayName. List must have a form like that returned by array get, consisting of an even number of elements. Each odd-numbered element in list is treated as an element name within arrayName, and the following element in list is used as a new value for that array element. If the variable arrayName does not already exist and list is empty, arrayName is created with an empty array value.


See also:


Category Command - Tcl syntax help