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

	<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>2009-09-29T13:21:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-09-29T13:21:22-04:00</updated>

		<published>2009-09-29T13:21:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90400#p90400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90400#p90400"/>
		<title type="html"><![CDATA[Arrays with strings?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90400#p90400"><![CDATA[
worked like a charm!!!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Tue Sep 29, 2009 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-09-28T14:55:06-04:00</updated>

		<published>2009-09-28T14:55:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90384#p90384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90384#p90384"/>
		<title type="html"><![CDATA[Arrays with strings?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90384#p90384"><![CDATA[
sorry I mistyped my post. I wanted to write #channel1 instead of #channel 1<br><br>anyway, will try it again. thx for the help (I will be back to say what happened <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">)<br><br>See you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Mon Sep 28, 2009 2:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-09-28T14:03:33-04:00</updated>

		<published>2009-09-28T14:03:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90382#p90382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90382#p90382"/>
		<title type="html"><![CDATA[Arrays with strings?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90382#p90382"><![CDATA[
In Tcl there are only really string values. There are no other data types.<br><br>Numbers are strings. They are only treated as numbers when used in the context of a number.<br><br>Array element names are strings, as are array element values.<br><br>Even a list is a special type of string where any list defining characters are also stored in the string.<br><br>I think Tcl is the only language I have used that has this distinct lack of data types. It took me a long time to become comfortable with it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Mon Sep 28, 2009 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2009-09-28T13:40:01-04:00</updated>

		<published>2009-09-28T13:40:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90380#p90380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90380#p90380"/>
		<title type="html"><![CDATA[Arrays with strings?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90380#p90380"><![CDATA[
Obviously the code you pasted is going to throw an error since the arguments are not balanced (i.e. <strong class="text-strong">#channel 1</strong> ...etc). Try<div class="codebox"><p>Code: </p><pre><code>array set messages { #channel1 "your string here" #channel2 "another string here"}</code></pre></div>and it should perfectly work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Sep 28, 2009 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-09-28T12:28:28-04:00</updated>

		<published>2009-09-28T12:28:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90379#p90379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90379#p90379"/>
		<title type="html"><![CDATA[Arrays with strings?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90379#p90379"><![CDATA[
Hey guys,<br><br>I was wondering if there is any kind of arrays where you can use strings. In a normal array, syntax is something like:<br><div class="codebox"><p>Code: </p><pre><code>array set &lt;arrayname&gt; {  Type     Value}</code></pre></div>e.g.<br><div class="codebox"><p>Code: </p><pre><code>array set blah {  prizes        19  victories     44  lostgames  6}</code></pre></div>What if I wanted to use strings instead of numbers in the array values?<br><br>e.g.<br><div class="codebox"><p>Code: </p><pre><code>array set messages {  #channel 1        "I'm trying to make strings working on arrays"  #channel2         "This is the message that will be shown on channel2."}</code></pre></div>and so forth and so forth.... I tried to do it like that, but I got an error when I rehashed and loaded the script.<br><br>Any suggestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Mon Sep 28, 2009 12:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
