[vtkusers] tlcTK problems

Kevin Wright krw at viz-solutions.com
Tue Apr 9 12:52:14 EDT 2002


>For Tcl questions you'd better try the newsgroup comp.lang.tcl.
>The problem with your code is, that the scope of variable a is just
>crea. the line "global a" does exactly nothing. You must declare a
>outside of the vars, if you want to work with globals.
>The second error is, that you need a line "global a" in scrivi, to
>access the var a.

Mr. Amati is correct that this should be directed to the tcl user's group, 
however, just to complete the archive on this one, "global a" does not do 
exactly nothing.  You can declare a global variable inside a function for 
the first time.  The only problem with the code was the lack of global 
declaration on the second proc.

Kevin.





More information about the vtkusers mailing list