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
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