<?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/11684" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.<br><font color=red><b>This is a READ-ONLY mirror of the old egghelp.org forum</b></font></subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-05-13T13:31:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-05-13T13:31:55-04:00</updated>

		<published>2006-05-13T13:31:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62979#p62979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62979#p62979"/>
		<title type="html"><![CDATA[call array from variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62979#p62979"><![CDATA[
array elements need to be initialized exactly like any other variable, too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat May 13, 2006 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[StaleJoke]]></name></author>
		<updated>2006-05-13T09:48:07-04:00</updated>

		<published>2006-05-13T09:48:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62977#p62977</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62977#p62977"/>
		<title type="html"><![CDATA[call array from variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62977#p62977"><![CDATA[
array set countem {}<br><br>Tcl error [countem]: can't read "users(1.#ChannelA)": no such element in array<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7046">StaleJoke</a> — Sat May 13, 2006 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-05-12T00:31:27-04:00</updated>

		<published>2006-05-12T00:31:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62954#p62954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62954#p62954"/>
		<title type="html"><![CDATA[call array from variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62954#p62954"><![CDATA[
exactly as you did<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri May 12, 2006 12:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[StaleJoke]]></name></author>
		<updated>2006-05-11T20:51:26-04:00</updated>

		<published>2006-05-11T20:51:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62952#p62952</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62952#p62952"/>
		<title type="html"><![CDATA[call array from variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62952#p62952"><![CDATA[
I have to set an array<br><br>Within the proc i want to use the variable like:<br><br>$users(1.#Channel1)<br><br>$users(2.#Channel1)<br><br><br>$users(1.#AnotherChannel2)<br><br>$users(2.#AnotherChannel2)<br><br>How should i go about doing it ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7046">StaleJoke</a> — Thu May 11, 2006 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-04-16T23:29:21-04:00</updated>

		<published>2006-04-16T23:29:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62014#p62014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62014#p62014"/>
		<title type="html"><![CDATA[call array from variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62014#p62014"><![CDATA[
why would you want to do that?<br><br>if you need to pass the array as proc parameter, use [upvar]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Apr 16, 2006 11:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Moonshine]]></name></author>
		<updated>2006-04-16T21:44:46-04:00</updated>

		<published>2006-04-16T21:44:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62012#p62012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62012#p62012"/>
		<title type="html"><![CDATA[call array from variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62012#p62012"><![CDATA[
imagine u have an array like <div class="codebox"><p>Code: </p><pre><code>array set test1 {  a 1                            b 2                            c 3 }</code></pre></div>now u can get the values like<div class="codebox"><p>Code: </p><pre><code>set result $test1(a)</code></pre></div>but it doenst work if test1 is saved in a variable like:<div class="codebox"><p>Code: </p><pre><code>set whatever test1set result $whatever(a)</code></pre></div>why ? <br>what if i have the array name only in a variable ?<br><br>TIA<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3630">Moonshine</a> — Sun Apr 16, 2006 9:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
