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

	<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>2008-01-03T12:23:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2008-01-03T12:23:20-04:00</updated>

		<published>2008-01-03T12:23:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79756#p79756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79756#p79756"/>
		<title type="html"><![CDATA[padding with leading zero's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79756#p79756"><![CDATA[
Thank you. That looks much better. I thought as much<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Thu Jan 03, 2008 12:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tsukeh]]></name></author>
		<updated>2008-01-03T11:54:32-04:00</updated>

		<published>2008-01-03T11:54:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79754#p79754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79754#p79754"/>
		<title type="html"><![CDATA[padding with leading zero's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79754#p79754"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set color [format %02s $value]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5911">tsukeh</a> — Thu Jan 03, 2008 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2008-01-03T11:11:12-04:00</updated>

		<published>2008-01-03T11:11:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79752#p79752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79752#p79752"/>
		<title type="html"><![CDATA[padding with leading zero's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79752#p79752"><![CDATA[
I'm looking for a more elegant way of padding integer values with leading zero's please<br><br>I'm currently using<br><br>set color [string map {10 10 11 11 12 12 13 13 14 14 15 15 2 02 3 03 4 04 5 05 6 06 7 07 8 08 9 09} $value]<br><br>to create a two digit mirc color value from an input integer value of 2 through 15 such that I can then use it, for example, to format output text<br><br>\003$color$text\003<br><br>It works fine but I'm just not happy with it. Maybe I'm just too fussy<br><br>I suspect there must be a way to use the TCL format command but I'm not well versed in C from which format seems to derive it's syntax<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Thu Jan 03, 2008 11:11 am</p><hr />
]]></content>
	</entry>
	</feed>
