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.