|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: RE: -foreach-, local macro, -split- command
> It would be great if I could get all the information that is displayed
> with the display command into unshared variables.
>
> David Torres
It seems what you are trying to do is terribly inefficient, and
I would not do it this way, but -logout- will chop up lines into
separate variables provided it is first placed into an external file.
I was not aware of -split- at the time but it does a similar thing.
It looks like the current version is not unwrapping texts correctly,
so you should use a really small font in the results window (right-click,
and choose the font size of 1).
Roy
sysuse auto, clear
set logtype text
levelsof make, local(lev)
cap log close
log using mylog.txt, replace
foreach l of local lev {
di `"`l' "' _c
}
di
log close
logout, use(mylog.txt) clear
keep if t2~=""
browse
_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/