I don't know of such a command. Usually
people want to see recent results.
In your program, the line
local ++n
is redundant. The -forval- loop
automatically increments its own index.
The number 2000 seems rather big here.
program define cls2
set more off
forval n=1/50 {
display
}
set more on
end
Nick
[email protected]
Renzo Comolli
> A small addition to the Stata Wish list: a command for "Clear
> stata result
> screen"
> I think there is no such a command (I looked hard for it).
>
> At the moment, I use an ado file I wrote (below), but for
> some reason it is
> slow to execute.
> If any person on Statalist has any idea to make it faster, I
> would greatly
> appreciate.
>
> program define cls2
> forvalues n=1/2000 {
> display ""
> local ++n
> }
> end
> exit
*
* 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/