Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: local: dir


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: local: dir
Date   Mon, 8 May 2006 12:19:48 +0100

Not so. What you are seeing is a result of 
the way you called -display-. If you 

. di `"`i'"' 

the spaces will be evident. N.B. at least 
under Windows, the compound double quotes
`"  "' are important for -display- here. 

Nick 
[email protected] 

Taavi Lai
 
> I tried to store a list of directories in current folder like 
> -fs- does 
> for later use in -foreach-.
> 
> . local i: dir "." dir "*"
> 
> . di `i'
> europa_500000_mapinfoprogshapefiles
> 
> Unfortunately as you can see that all the folder names were stored as 
> one string.
> Do you have any suggestions how to correct this or where to 
> look further.


*
*   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