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

	<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-06-13T16:05:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-13T16:05:36-04:00</updated>

		<published>2003-06-13T16:05:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21783#p21783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21783#p21783"/>
		<title type="html"><![CDATA[tclvars - Variables used by Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21783#p21783"><![CDATA[
oh yes indeed i got the platfrom thingy to work didn't have to put it in global tho just having some trouble with env i tought it would be like that i tryed system folder on a windows machine <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> still trying tho. think i am doing something wrong syntax = same as the platfrom thingy ??<br><br>is there like a way i can show cpu ram ... disk size<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Jun 13, 2003 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-13T14:11:14-04:00</updated>

		<published>2003-06-13T14:11:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21775#p21775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21775#p21775"/>
		<title type="html"><![CDATA[tclvars - Variables used by Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21775#p21775"><![CDATA[
The variables listed on that page are just regular global variables. There are two ways to use global variables inside a proc. One is to use the "global" command and the other is to start the variable with ::.<br><br>global tcl_platform<br>set blah $tcl_platform(hello)<br><br>or<br><br>set blah $::tcl_platform(hello)<br><br>both codes do the same thing.<br><br>In a previous question you asked: or do i need to do like "$::tcl platfrom(var)". I hope it was a typo, because the name of the array variable is tcl_platform, not "tcl platfrom". There is an underscore, not a space. And also realize that "var" has to be a valid variable listed on the help page, e.g. byteOrder, osVersion, etc And yes, capitalization is important.<br><br>In your last question you asked about $::env(varname). That works, as long as varname is a valid entry in the array. Use the names on the help page, with the exact spelling and capitalization they provide. Even then, not all of them may be defined. For instance if you're on linux, APPLE_M_FOLDER probably will not be defined heh. So first check to see if it exists using the "info exists" command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Jun 13, 2003 2:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-13T13:45:16-04:00</updated>

		<published>2003-06-13T13:45:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21772#p21772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21772#p21772"/>
		<title type="html"><![CDATA[tclvars - Variables used by Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21772#p21772"><![CDATA[
<a href="http://dev.scriptics.com/man/tcl8.4/TclCmd/tclvars.htm#M4" class="postlink">http://dev.scriptics.com/man/tcl8.4/Tcl ... ars.htm#M4</a><br><br>euhm how do i use this then cause it seems different ?? i tryed<br><br>$::env(varname)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Jun 13, 2003 1:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-13T07:21:36-04:00</updated>

		<published>2003-06-13T07:21:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21756#p21756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21756#p21756"/>
		<title type="html"><![CDATA[tclvars - Variables used by Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21756#p21756"><![CDATA[
so if i wana use a global var i do $::varname ????<br><br>or do i need to do like "$::tcl platfrom(var)"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Jun 13, 2003 7:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-13T07:13:39-04:00</updated>

		<published>2003-06-13T07:13:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21755#p21755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21755#p21755"/>
		<title type="html"><![CDATA[tclvars - Variables used by Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21755#p21755"><![CDATA[
in your eggdrop's partyline, type this (assuming you have .tcl command binded) <span style="text-decoration:underline">.tcl putlog $::tcl_platform(platform)</span><br><br>the :: means it is a global variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri Jun 13, 2003 7:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-13T07:01:25-04:00</updated>

		<published>2003-06-13T07:01:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21754#p21754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21754#p21754"/>
		<title type="html"><![CDATA[tclvars - Variables used by Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21754#p21754"><![CDATA[
<a href="http://dev.scriptics.com/man/tcl8.4/TclCmd/tclvars.htm#M29" class="postlink">http://dev.scriptics.com/man/tcl8.4/Tcl ... rs.htm#M29</a><br><br>hmm i have tryed to use it as a var but get always errors just curious how do i use sutch var ?? i mean it seems it isn't used like php vars or mirc vars or ... is there anything i need to define or a dll i need to load or something .. ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Jun 13, 2003 7:01 am</p><hr />
]]></content>
	</entry>
	</feed>
