Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: tempname


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: tempname
Date   Fri, 4 Oct 2002 17:55:55 +0100

Nick Cox

> Within a loop controlled by -forvalues- or -foreach- (or
> indeed -while-)
> 
> 	tempname mymat
> 
> always generates a _new_ tempname, even if
> `mymat' already exists. This is
> not, to me, intuitive, but it's what
> happens.

Strictly, this is true irrespective 
of whether you are inside a loop 
or not. In practice, it seems most 
useful within some loop. 

Nick 
n.j.cox@durham.ac.uk 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index