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

	<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-10-07T15:57:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-10-07T15:57:08-04:00</updated>

		<published>2003-10-07T15:57:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28139#p28139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28139#p28139"/>
		<title type="html"><![CDATA[using lindex lrange .. ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28139#p28139"><![CDATA[
never mind i figured it out tnx for the split suggestion that worked <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=3151">Ofloo</a> — Tue Oct 07, 2003 3:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-10-07T14:42:30-04:00</updated>

		<published>2003-10-07T14:42:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28131#p28131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28131#p28131"/>
		<title type="html"><![CDATA[using lindex lrange .. ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28131#p28131"><![CDATA[
dude i know its only the from the 4th that i need it but for my space problem ...?<br><br>don't have char problem but a space problem its for file path and if a file path like windows contains spaces ..? also it could contain more then one space and its to add it from channel not the fetch it from hd so ..<br><br>this is the problem nothing else :p<br><div class="codebox"><p>Code: </p><pre><code>set filepath [string map -nocase {" " "&lt;sp&gt;"} [join [lrange $arg 4 end]]]</code></pre></div>its only a fragment of a script hehe i am not talking about lost chars but lost spaces !!!!<br><br>but tnx for trying to help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Oct 07, 2003 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-07T14:25:53-04:00</updated>

		<published>2003-10-07T14:25:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28127#p28127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28127#p28127"/>
		<title type="html"><![CDATA[using lindex lrange .. ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28127#p28127"><![CDATA[
<strong class="text-strong">[lindex $arg 0]</strong> returns the first element in $arg, but its a list, so to turn it into a string change it to <strong class="text-strong">[lindex [split $arg] 0]</strong><br><br><strong class="text-strong">[lrange $arg 0 end]</strong> returns the whole line in $arg (from first letter to last letter, its also a list. to turn it into a string change it to <strong class="text-strong">[join [lrange $arg 0 end]]</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Oct 07, 2003 2:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-10-07T13:11:13-04:00</updated>

		<published>2003-10-07T13:11:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28115#p28115</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28115#p28115"/>
		<title type="html"><![CDATA[using lindex lrange .. ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28115#p28115"><![CDATA[
this sounds logic but could you give me an example so i can understand it mutch beter ..?<br><br>or is there an other beter way ?<br><br>i have tryed this set filepath [string map -nocase {" " "&lt;sp&gt;"} [join [lrange $arg 4 end]]]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Oct 07, 2003 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-10-07T11:47:32-04:00</updated>

		<published>2003-10-07T11:47:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28112#p28112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28112#p28112"/>
		<title type="html"><![CDATA[using lindex lrange .. ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28112#p28112"><![CDATA[
lindex and lrange are list commands, and do not work well on strings.<br><br>Use "split" to covert the string to a list first.<br><br>Second, lindex returns a single element from a list. As such, if you split using spaces, then you don't get and spaces in return.<br><br>lrange returns a list in the form of a range of list elements. If you need the space back after, convert it to a string using "join".<br><br>You would have to show an example if this doesn't help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Oct 07, 2003 11:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-10-07T11:42:05-04:00</updated>

		<published>2003-10-07T11:42:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28110#p28110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28110#p28110"/>
		<title type="html"><![CDATA[using lindex lrange .. ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28110#p28110"><![CDATA[
hmm i got a string ..? and that string contains spaces but once i use lindex or lrange the string the spaces are lost so how do i use lindex or lrange without lossing spaces ? or any other char ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Oct 07, 2003 11:42 am</p><hr />
]]></content>
	</entry>
	</feed>
