🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

how to get the variable values from two different script

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

I have script something like this

 

##########################################################

first script.tcl

 

proc firstscript {} {

variable i

 

set i 10

}

#=======================================================

secondscript.tcl

 

proc secondscript {} {

variable i

puts $i

}

 i struggling lot because of this problem.

 

I ran the first script, in the script I set the variable  set i 10

 

i want get variable value $i in the second script

 

i tried with global , variable  options

 

Please give some suggestion or solution

 

Thanks in advance

 

Thanks and Regards

P.Varthamanan

Find more posts tagged with