Version 2 of array startsearch

Updated 2012-11-30 19:36:19 by pooryorick

array startsearch arrayName

This command initializes an element-by-element search through the array given by arrayName, such that invocations of the array nextelement command will return the names of the individual elements in the array. When the search has been completed, the array donesearch command should be invoked. The return value is a search identifier that must be used in array nextelement and array donesearch commands; it allows multiple searches to be underway simultaneously for the same array.


Note that this may not work correctly with the special env array.


See also:


Category Command - Tcl syntax