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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameter passing

Status
Not open for further replies.

Thodd

Technical User
Oct 21, 2006
27
BE
Does anybody know how I can pass a value from a variable?

for {set i 0} {$i < 3} {incr i} {
if {$i != 0} {
"BGP {$i}"
}
}

proc BGP {x} {
puts $x
}

my compiler says "BGP {$i}" is an invalid command...
what is wrong? thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top