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

	<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-07-16T16:10:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-07-16T16:10:55-04:00</updated>

		<published>2003-07-16T16:10:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23579#p23579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23579#p23579"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23579#p23579"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set movies(count) 0set in [open mymovies.txt r]while {![eof $in]} { incr movies(count)set movies($movies(count)) [gets $in]}</code></pre></div>this should read all lines from the file into the array<br><div class="codebox"><p>Code: </p><pre><code>set ctr 1set ctr2 0set ctr3 0while {$finished == 0} {incr ctrincr ctr3if {$ctr == 15} {set ctr 1 incr ctr2}set page($ctr2,$ctr) $movie($ctr3)if {$ctr3 == $movies(count)} {set finished 1}}</code></pre></div>i'm sorry i cant test it right now, but i think it should work<br>the output will be an array (page) with page(1,3) == "Desperados" for example<br><br>the output into the html template shouldnt be a problem afterwards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Wed Jul 16, 2003 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-07-16T15:14:51-04:00</updated>

		<published>2003-07-16T15:14:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23574#p23574</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23574#p23574"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23574#p23574"><![CDATA[
Give me an example of how should I mess around inside the for loop. I've played with it and screwd it all the time. The thing is that inside this loop I got to store in a html file only 15 movies with ther coments, date and etc. then move to the next page and continue with other 15 and so on..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jul 16, 2003 3:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GeoMan59]]></name></author>
		<updated>2003-07-16T14:58:52-04:00</updated>

		<published>2003-07-16T14:58:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23572#p23572</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23572#p23572"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23572#p23572"><![CDATA[
Don't need a div command i would think. You could do two things, you could store it in a temp var and take away 15 every time until you either go negative/zero or detect that the number is below 15, depending on where u check. Or you could do normal division and check to see if the number was below or equal to 15...<br><br>Tell me if that makes sense <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=1636">GeoMan59</a> — Wed Jul 16, 2003 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-07-16T14:41:15-04:00</updated>

		<published>2003-07-16T14:41:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23570#p23570</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23570#p23570"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23570#p23570"><![CDATA[
a loop with a counter<br>then use the mathematic DIV cmd (if there is such a thing in TCL) to check if the counter is able to be divided trought 15 (alà if {[expr $ctr div 15] = 0})<br>if yes -&gt; increase the page-jump-counter by one<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Wed Jul 16, 2003 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-07-16T13:55:30-04:00</updated>

		<published>2003-07-16T13:55:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23568#p23568</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23568#p23568"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23568#p23568"><![CDATA[
Use a for loop?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jul 16, 2003 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-07-16T10:56:15-04:00</updated>

		<published>2003-07-16T10:56:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23559#p23559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23559#p23559"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23559#p23559"><![CDATA[
I have a list of movies with date of appearing and it's votes written in a variable or even in a file, dosen't matter. What I want to do is to split the list in some pages, to have 15 movies on a page, another 15 on th next page and so on till It's empty. I would like some sugestions on how should I complete this task. I have some ideeas of my own, but I want to see/compare mine with others.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jul 16, 2003 10:56 am</p><hr />
]]></content>
	</entry>
	</feed>
