The Toolkit for Online Communities
17711 Community Members, 1 member online, 1954 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : template::multirow upvar -- example of use? : One Message

Forum OpenACS Q&A: Re: template::multirow upvar -- example of use?

Posted by Lars Pind on

multirow upvar works the opposite way: It upvars a multirow from wherever it exists (typically the #[adp_level] stack frame) to your stack frame.

It can't do it the other way around, since that is the way Tcl's 'upvar' command works: It takes a variable from another stack frame and makes it available in your stack frame.

Btw, saying -local -ulevel #[adp_level] as you do above is equivalent to not specifying anything.

You can find multirow upvar used in packages/acs-templating/tcl/list-procs.tcl, which I added last week.