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

RE: Wish list: clear stata result screen


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: Wish list: clear stata result screen
Date   Sun, 7 Nov 2004 19:16:09 -0000

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/



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