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

	<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-07-22T06:42:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-07-22T06:42:54-04:00</updated>

		<published>2004-07-22T06:42:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38964#p38964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38964#p38964"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38964#p38964"><![CDATA[
just a little tip for those interested in upvar/uplevel..<br><a href="http://dqd.com/~mayoff/notes/tcl/upvar.html" class="postlink">http://dqd.com/~mayoff/notes/tcl/upvar.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jul 22, 2004 6:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2004-07-21T12:02:57-04:00</updated>

		<published>2004-07-21T12:02:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38921#p38921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38921#p38921"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38921#p38921"><![CDATA[
Thx.. working great...<br>you just made my day <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Wed Jul 21, 2004 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-07-21T11:46:54-04:00</updated>

		<published>2004-07-21T11:46:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38920#p38920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38920#p38920"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38920#p38920"><![CDATA[
You don't <span style="text-decoration:underline">have</span> to use upvar <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <div class="codebox"><p>Code: </p><pre><code>proc bla {bla bla bla} {  #call proc 2 and catch the result   set result [bla2 bla]}proc bla2 {bla} {  #do the sql querie and return the result  return $result}</code></pre></div>... easy way to do it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jul 21, 2004 11:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2004-07-21T11:36:41-04:00</updated>

		<published>2004-07-21T11:36:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38919#p38919</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38919#p38919"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38919#p38919"><![CDATA[
Well now it even harder to read..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><br>Well i think i'm just going to experiment. and lets see what happens.<br>I know now that i have to use upvar.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Wed Jul 21, 2004 11:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-07-21T10:47:38-04:00</updated>

		<published>2004-07-21T10:47:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38917#p38917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38917#p38917"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38917#p38917"><![CDATA[
<a href="http://babelfish.altavista.com/babelfish/tr" class="postlink">Translate</a> to your native language then. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jul 21, 2004 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2004-07-21T07:46:53-04:00</updated>

		<published>2004-07-21T07:46:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38911#p38911</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38911#p38911"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38911#p38911"><![CDATA[
Well thanks it's nice to know some-one is trying to be helpfull. But it still doesn't give me any idea on how uplevel works. As I little by little understand more of TCL i still have a hard time figuring things out by meself.<br><br>It's just like the mann pages, if you are not native english or have studied it it's very hard to read. And i'm not natvie english or have studied it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>From the man pages (<a href="http://www.hume.com/html84/mann/upvar.htm" class="postlink">www.hume.com/html84/mann/upvar.htm</a>) i can understand you can only use uplevel is the first letter of your variable is a # or a digit.<br><br>But after that it's all some nice english [censored] for me. Are these mann pages also avalible in Dutch or could some-one explain it to me in more simple words. Because i would like to know what i'm doing. With two hours of coding i might get it to work but then i still don't know what i'm doing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Wed Jul 21, 2004 7:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-07-20T05:03:10-04:00</updated>

		<published>2004-07-20T05:03:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38870#p38870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38870#p38870"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38870#p38870"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># $Id: loader.tcl,v 0.2 2004/05/06 18:19:32 [Xp-AvR] Exp $namespace eval ::loader {  # Format:  #   botnet-nick "tcls to load"  array set Tcl2Load {    ipv4 "scripts/tcl1.tcl scripts/tcl2.tcl"    ipv6 "scripts/tcl2.tcl"    bnc  "scripts/tcl3.tcl .data/.scripts/tcl55.tcl"  } ;# Tcl2Load  # LoadTcl  proc LoadTcl { } {    global botnet-nick    variable Tcl2Load    foreach tmpx [lsort [array names Tcl2Load]] {      set botx [lindex $tmpx 0]      if {${botnet-nick} == $botx} then {        foreach tclx $Tcl2Load($botx) {          uplevel #0 source $tclx        }        return 0      }    }    return 0  } ;# LoadTcl  LoadTcl} ;# namespace eval loader</code></pre></div><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=3672">KrzychuG</a> — Tue Jul 20, 2004 5:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2004-07-20T03:02:50-04:00</updated>

		<published>2004-07-20T03:02:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38868#p38868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38868#p38868"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38868#p38868"><![CDATA[
Could some-one post a example of upvar and/or uplevel.<br>Because i can't get it to work (i think it's me <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=4374">Quinie</a> — Tue Jul 20, 2004 3:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-07-19T08:30:36-04:00</updated>

		<published>2004-07-19T08:30:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38803#p38803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38803#p38803"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38803#p38803"><![CDATA[
Yes, upvar i think is what you are looking for.<blockquote class="uncited"><div>upvar - Create link to variable in a different stack frame </div></blockquote>or hmm.. uplevel - Execute a script in a different stack frame?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jul 19, 2004 8:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2004-07-19T04:22:24-04:00</updated>

		<published>2004-07-19T04:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38799#p38799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38799#p38799"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38799#p38799"><![CDATA[
This will change it into a global variable.<br>In that case it tought the value of the variable will not be emptyd as the proc ends.<br><br>But then again as i'm thinking i can drop it myself ofcource.<br><br>But can't this be done during the running of the procs only.<br>Like using the Return function or the upvar and getvar ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Mon Jul 19, 2004 4:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-07-18T10:25:55-04:00</updated>

		<published>2004-07-18T10:25:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38755#p38755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38755#p38755"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38755#p38755"><![CDATA[
one word one command <br><br>global varname<br><br>check out tcl manual on <a href="http://www.tcl.tk" class="postlink">www.tcl.tk</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Jul 18, 2004 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2004-07-18T05:56:23-04:00</updated>

		<published>2004-07-18T05:56:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38750#p38750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38750#p38750"/>
		<title type="html"><![CDATA[Transfer variable between proc's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38750#p38750"><![CDATA[
From 1 proc i call another proc that makes a sql querie.<br>I want to give the value of this querie back to the first prog. So the first proc can uses this value.<br><br>Can anyone tell me how to do this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Sun Jul 18, 2004 5:56 am</p><hr />
]]></content>
	</entry>
	</feed>
