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

st: RE: small problem with return macro


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: small problem with return macro
Date   Mon, 12 Apr 2004 18:01:47 +0100

Correction inserted below. 

Nick 
[email protected] 

> -----Original Message-----
> From: Nick Cox 
> Sent: 12 April 2004 18:00
> To: '[email protected]'
> Subject: RE: small problem with return macro
> 
> 
> Others noted the main difficulty. 
> 
> The example here may not be the real problem. Even if it isn't, 
> the alternative solution of generating the contents
> of such a list by a loop is worth noting. 
> 
> forval i = 1/50 { 
> 	local list "`list' `: di %02.0f `i''"
> } 
> 
> That is, the little twist here of leading zeros is soluble 
> by an in-line format. 
> 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index