<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Webaide.net</title>
<link>http://www.webaide.net</link>
<description>Ressources pour webmaster, et sur l informatique en general</description>
<language>fr</language>
<generator>http://www.webaidenet/</generator>

<item>
  <title>TCL portée des variables</title>
  <link>http://www.webaide.net/Port-e-des-variables-aide-151.html</link>
  <guid >http://www.webaide.net/Port-e-des-variables-aide-151.html</guid>
  <dc:date>2007-06-14T14:12:17Z</dc:date>
  <dc:format>text/html</dc:format>
  <dc:language>fr-fr</dc:language>
  <dc:creator>spado</dc:creator>
  <category domain="http://www.webaide.nethttp://www.webaide.net/language-TCL-dossier-22.html">language TCL</category>
  <description>Portée des variables en programmation TCL

</description>
<content:encoded><![CDATA[<p>Pour rendre une variable utilisable dans un proc, il faut la declarer en GLOBAL
<br/></p>

<div class='code'>global variable</div>

<p></p>

<div class='exemple'>proc news:recent { nick uhost hand chan text } {<br/>
global fichier<br/>
<br/>
set num 1<br/>
set ligne [fichier:lis_ligne $fichier $num]<br/>
putserv "PRIVMSG $chan :$ligne"<br/>
}</div>>]]></content:encoded>
</item>
</channel>
</rss>


