[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] creating a temporary page variable
At 09:21 PM 8/29/2002 -0400, you wrote:
>Hello,
>
> This is one of those "it sounds dumb to me" questions but I have
>reviewed the docs a trillion times on this and haven't come up with an
>answer. From what I understand, set and tmp both create variables in the
>session record.
[tmp] variables will lose their value at the end of the page delivery.
>Is there any way to create and access a temporary variable
>that is scoped to just the single template iteration that never gets saved
>in the session?
You didn't mention Perl, but for the sake of completion:
push(@Vend::TmpScratch,qw/name_of_tmp_variable/);
$Scratch->{name_of_tmp_variable} = '';
-or-
$Tag->tmp(...);
Cheers,
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
| Dan Browning, Kavod Technologies <dan.browning@kavod.com> |
| (360) 882-7872 x7, 6700 NE 162nd Ave, Suite 210, Vancouver, WA |
\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
You will be attacked by a beast who has the body of a wolf, the tail of
a lion, and the face of Donald Duck.