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

	<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>2004-07-22T20:54:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-22T20:54:53-04:00</updated>

		<published>2004-07-22T20:54:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38981#p38981</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38981#p38981"/>
		<title type="html"><![CDATA[Declaring alot of variables, with arrays or loops.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38981#p38981"><![CDATA[
Umm... thanks Papillon.. yeah it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Jul 22, 2004 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-07-22T05:02:25-04:00</updated>

		<published>2004-07-22T05:02:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38959#p38959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38959#p38959"/>
		<title type="html"><![CDATA[Declaring alot of variables, with arrays or loops.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38959#p38959"><![CDATA[
There is nothing wrong with your code. It should work without problem.<br>from tclsh:<blockquote class="uncited"><div>% for {set i 1} {$i &lt; 116} {incr i} { set char($i) 0 }<br>% set char(41)<br>0<br>% set char(115)<br>0</div></blockquote>...or you could use the while loop instead<div class="codebox"><p>Code: </p><pre><code>set i 1while {$i&lt;116} { set char($i) 0 ; incr i }</code></pre></div>char[115] does not work in tcl <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=852">Papillon</a> — Thu Jul 22, 2004 5:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-22T03:50:23-04:00</updated>

		<published>2004-07-22T03:50:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38958#p38958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38958#p38958"/>
		<title type="html"><![CDATA[Declaring alot of variables, with arrays or loops.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38958#p38958"><![CDATA[
Hi,<br><br>I have a script using alot of variables.<br>And declaring them is a real problem, I guess.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad"> <br><br>The variables say are, char1, char2, char3...... char115. (char1 - char115)<br>I can do that manually but, that is really hectic.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>What here is I came up with a peiece of code<br>to do it. But it doesn't work.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> <br><div class="codebox"><p>Code: </p><pre><code>for {set i 1} {$i &lt; 116} {incr i} { set char($i) 0}#Even tried, set char[$i], or set char$i, but they don't work!</code></pre></div>Also in C I remember, you could declare them<br>such as using arrays, set char[115]? would this<br>declare 115 variables from, index 0 to index 115? <br><br>If anyone, can help me with this, I would be very thankful!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Jul 22, 2004 3:50 am</p><hr />
]]></content>
	</entry>
	</feed>
