Thread: TCL Globals
View Single Post
Old 19th June 2006, 09:33 PM   #2
conzar
Member
Advanced member
 
conzar's Avatar
 
Join Date: May 2006
Posts: 36
Default Re: TCL Globals

ok, figured out what I'm doing wrong.

Change the code to the following and it works.
Code:
proc test {}{
    global PI
    set PI 3.14
    test2
}

proc test2 {}{
    global PI
    puts $PI
}
conzar is offline   Reply With Quote