logo www.webaide.net - php html javascript creation web
Informatique > Internet > language TCL > Portée des variables

Portée des variables


*
par spado
14/06/2007 à 14h12
rss
Portée des variables en programmation TCL

Pour rendre une variable utilisable dans un proc, il faut la declarer en GLOBAL

global variable

proc news:recent { nick uhost hand chan text } {
global fichier

set num 1
set ligne [fichier:lis_ligne $fichier $num]
putserv "PRIVMSG $chan :$ligne"
}
Liens sponsorisés
- Pour réagir : le chat ou Contacter l'auteur
- Lien rapide vers la page : webaide.net/aide-151.html
- Recommander : Digg it del.icio.us it Blogmark it Blogmark it Ajouter a mes favoris Technorati Scoop it Fuzz it Tape Moi! AllActuer Ca! Nuouz Ca! Memes Ca! Pioche Ca! Blue it Bookmark Ca!
- Création webaide.net, toutes reproductions interdites.
plan du site - Compétences - Echanges de liens - Me contacter - configurer votre adresse e-mail creation site internet