Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a global variable within a procedure

Status
Not open for further replies.

globemast

Programmer
Jun 24, 2006
7
0
0
CY
Hello,

Is it possible to create a global variable, to be accesed by the whole TCL script within a procedure?

My problem exactly is the following:

I have a procedure which takes 2 parameters. Based on the parameters that it will take it executes a small loop. The loop is controlled based on this two parameters. Inside this loop i create some variables, which i want to use them also outside the procedure at some point.

How can i achieve this? Should i create the variables prior calling the procedure or is there any other way of doing it.


Best Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top