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

	<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>2007-10-31T07:45:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2007-10-31T07:45:04-04:00</updated>

		<published>2007-10-31T07:45:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77304#p77304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77304#p77304"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77304#p77304"><![CDATA[
Hi there,<br><br>Thanks.<br><br>Regards,<br>Lu5ck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Wed Oct 31, 2007 7:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-10-30T09:52:56-04:00</updated>

		<published>2007-10-30T09:52:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77270#p77270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77270#p77270"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77270#p77270"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set String "the end."set String "This is $String"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Oct 30, 2007 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2007-10-30T09:12:07-04:00</updated>

		<published>2007-10-30T09:12:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77267#p77267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77267#p77267"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77267#p77267"><![CDATA[
Hi there,<br><br>Is there a easiler way to do it if I wanted to add text infront of the string?<br><br>Regards,<br>Lu5ck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Tue Oct 30, 2007 9:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2007-10-29T09:43:06-04:00</updated>

		<published>2007-10-29T09:43:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77237#p77237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77237#p77237"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77237#p77237"><![CDATA[
Hi there,<br><br>Thank you for the help.<br><br>Regards,<br>Lu5ck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Mon Oct 29, 2007 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-25T16:09:55-04:00</updated>

		<published>2007-10-25T16:09:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77129#p77129</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77129#p77129"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77129#p77129"><![CDATA[
Errmmm.... NO!<br>First learn do tell the difference between lists and strings in tcl...<br>Add a { or such into the test-string and watch how your code falls apart...<br><br>Proper code would look something like this:<div class="codebox"><p>Code: </p><pre><code>set test "This is just a test uh"set list1 [split $test]set list2 [list "This" "is" "just" "a" "test" "uh"]set result1 [join [concat [lrange $test1 0 2] "OOPS" [lrange $test1 3 end]]]linsert list2 3 "OOPS"</code></pre></div>Edit:<br>In order to accomplish the same result without resorting to lists, use something like this:<div class="codebox"><p>Code: </p><pre><code>set test "This is just a test uh"set result [string replace $test 12 12 "OOPS "]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Oct 25, 2007 4:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[w00f]]></name></author>
		<updated>2007-10-25T15:43:38-04:00</updated>

		<published>2007-10-25T15:43:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77127#p77127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77127#p77127"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77127#p77127"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set test "This is just a test uh"set test [concat [lrange $test 0 2] "OOPS" [lrange $test 3 end]]</code></pre></div><div class="codebox"><p>Code: </p><pre><code>Tcl return: This is just OOPS a test uh</code></pre></div>use <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/lrange.htm" class="postlink">lrange</a> to grab what you want.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8264">w00f</a> — Thu Oct 25, 2007 3:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2007-10-25T09:01:48-04:00</updated>

		<published>2007-10-25T09:01:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77120#p77120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77120#p77120"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77120#p77120"><![CDATA[
Hi there,<br><br>Thanks for the answer. What if I want to add text into the center of the string or any location in the string.<br><br>Regards,<br>Lu5ck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Thu Oct 25, 2007 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-24T10:42:26-04:00</updated>

		<published>2007-10-24T10:42:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77065#p77065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77065#p77065"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77065#p77065"><![CDATA[
Using append (for strings) or concat (for lists):<div class="codebox"><p>Code: </p><pre><code>append var "more text"concat var "other stuffs"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Oct 24, 2007 10:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2007-10-24T10:01:28-04:00</updated>

		<published>2007-10-24T10:01:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77063#p77063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77063#p77063"/>
		<title type="html"><![CDATA[String]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77063#p77063"><![CDATA[
Hi all,<br><br>How do you add text to string? Something like insert or var + "this message" in other language.<br><br>Regards,<br>Lu5ck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Wed Oct 24, 2007 10:01 am</p><hr />
]]></content>
	</entry>
	</feed>
