<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/5721" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-09-30T02:53:57-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/5721</id>

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-30T02:53:57-04:00</updated>

		<published>2003-09-30T02:53:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27753#p27753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27753#p27753"/>
		<title type="html"><![CDATA[array of array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27753#p27753"><![CDATA[
I'll keep it in my mind and won't re-ask for it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Thanx a lot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Sep 30, 2003 2:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-29T19:12:21-04:00</updated>

		<published>2003-09-29T19:12:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27747#p27747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27747#p27747"/>
		<title type="html"><![CDATA[array of array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27747#p27747"><![CDATA[
or a more common practice is to use commas to <em class="text-italics">represent</em> (not really multi-dimensional for all intensive purposes) multi-dimensional arrays...(Also more practical in this case in particular, as channel names may contain a :, but are not allowed to contain a ,)...<br><br>ie. $test_array(#chan1,0) , $test_array(#chan2,1) ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Sep 29, 2003 7:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-29T14:26:44-04:00</updated>

		<published>2003-09-29T14:26:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27736#p27736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27736#p27736"/>
		<title type="html"><![CDATA[array of array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27736#p27736"><![CDATA[
YESSSSSSSSS!!!<br>thanx a lot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 29, 2003 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-29T14:16:56-04:00</updated>

		<published>2003-09-29T14:16:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27733#p27733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27733#p27733"/>
		<title type="html"><![CDATA[array of array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27733#p27733"><![CDATA[
instead of <em class="text-italics">test_array(second_channel)(0) = users</em> and so on use something like <em class="text-italics">test_array(second_channel:0) = users </em>..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Sep 29, 2003 2:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-29T14:07:48-04:00</updated>

		<published>2003-09-29T14:07:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27732#p27732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27732#p27732"/>
		<title type="html"><![CDATA[array of array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27732#p27732"><![CDATA[
well, another trouble...<br>I want to create an array of array, to get this kind of values:<br>test_array(first_channel)(0) = users<br>test_array(first_channel)(1) = voices<br>test_array(first_channel)(2) = halfs<br>test_array(first_channel)(3) = opers<br>test_array(second_channel)(0) = users<br>test_array(second_channel)(1) = voices<br>test_array(second_channel)(2) = halfs<br>test_array(second_channel)(3) = opers<br>but  first_channel, second_channel are variables coming from [channels]<br><br>So, I make:<div class="codebox"><p>Code: </p><pre><code>foreach my_chan [channels] {set test_array([string tolower $my_chan]) { "0" "0" "0" "0"}}....proc fillin {channel} {global test_arrayset test_array((${channel})(0) "x"set test_array((${channel})(1) "y"....putlog "$test_array((${channel})(0) -- $test_array((${channel})(1)"}</code></pre></div>And the response is always: <strong class="text-strong">Tcl error [fillin]: can't read "test_array((yourchan)": no such element in array</strong> (my channel is #yourchan)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 29, 2003 2:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
