From 1 proc i call another proc that makes a sql querie.
I want to give the value of this querie back to the first prog. So the first proc can uses this value.
Well thanks it's nice to know some-one is trying to be helpfull. But it still doesn't give me any idea on how uplevel works. As I little by little understand more of TCL i still have a hard time figuring things out by meself.
It's just like the mann pages, if you are not native english or have studied it it's very hard to read. And i'm not natvie english or have studied it
From the man pages (www.hume.com/html84/mann/upvar.htm) i can understand you can only use uplevel is the first letter of your variable is a # or a digit.
But after that it's all some nice english [censored] for me. Are these mann pages also avalible in Dutch or could some-one explain it to me in more simple words. Because i would like to know what i'm doing. With two hours of coding i might get it to work but then i still don't know what i'm doing.
proc bla {bla bla bla} {
#call proc 2 and catch the result
set result [bla2 bla]
}
proc bla2 {bla} {
#do the sql querie and return the result
return $result
}