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

	<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-01-14T16:11:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-14T16:11:08-04:00</updated>

		<published>2004-01-14T16:11:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32512#p32512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32512#p32512"/>
		<title type="html"><![CDATA[string range]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32512#p32512"><![CDATA[
or string trim to remove the .xxxx <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=187">caesar</a> — Wed Jan 14, 2004 4:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-01-14T14:41:28-04:00</updated>

		<published>2004-01-14T14:41:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32511#p32511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32511#p32511"/>
		<title type="html"><![CDATA[string range]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32511#p32511"><![CDATA[
2 remarks:<br>1. you are using list commands on a string<br>2. you could just split on "."<br><br>like:<div class="codebox"><p>Code: </p><pre><code>set string [lindex [split $input "."] 0]</code></pre></div>to get your first xxxxx<br>then make the first x upper case (don't know a better way than the one you are using <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=2617">arcane</a> — Wed Jan 14, 2004 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-01-14T13:36:53-04:00</updated>

		<published>2004-01-14T13:36:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32509#p32509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32509#p32509"/>
		<title type="html"><![CDATA[string range]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32509#p32509"><![CDATA[
solved it already <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>     set mapvol [lindex $row 4]     set mapstrip [string range $mapvol 0 [expr [strlen $mapvol]-5]]     set map1 [string toupper [string range $mapstrip 0 0]]     set map2 [string range $mapstrip 1 end]     set map $map1$map2</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Wed Jan 14, 2004 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-01-14T13:05:05-04:00</updated>

		<published>2004-01-14T13:05:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32507#p32507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32507#p32507"/>
		<title type="html"><![CDATA[string range]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32507#p32507"><![CDATA[
Hi all, just a small question<br><br>let's say I have a string: "xxxxxx.xxx"<br>and I want to loose the .xxx (always the last 4 characters) and I want to make the first x of the string an uppercase X so you would have:<br><br>"Xxxxxx"<br><br>I've tried it with string range but it didn't work out.<br><br>Could somebody write me the line I need?<br>thx.<br><br>Chrizz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Wed Jan 14, 2004 1:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
