SUNiNET - Your Eggdrop & TCL resources site
[ Home Eggdrop TCL Links About ]

Guide to TCL scripting for Eggdrop 1.6


[ Previous ] [ Index ] [ Next ]


5.4 Retrieving an array list

After you've made an array you might want to get a list of all the strings that are in the array, for example getting a list of the array $test() from the previous example.

The command used for this is array names.
The syntax of an array names command is array names <array>.
In this case <array> is the name of the array you want to get the names from like "test" in the example.

Now if we were to put array names test in the previous example, it would result in getting "what" and "when" returned.

Right now you proberbly don't have any use for this, but later on it might come in usefull.


[ Previous ] [ Index ] [ Next ]


Design & Graphics by Shawn Borton
Copyright © 2000-2005 Marijn van Zon