Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: How do I write a directory listing to a file under Windows


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   RE: st: How do I write a directory listing to a file under Windows
Date   Thu, 14 May 2009 13:19:16 +0200

Am Donnerstag, den 14.05.2009, 03:35 -0700 schrieb Roy Wada:
> prog define click
> *! Clickable stuff
> args suffix
> local name: dir `"`c(pwd)'"' files "*.`suffix'"
> tokenize `"`name'"'
> local num 1
> while `"``num''"'~="" {
>    local var `"``num''"'
>    local cl_text `"{browse `"``num''"'}"'
>    noi di as txt `"`cl_text'"'
>    local num=`num'+1
> }
> end

Thank you very much, indeed. Can't believe that it's that simple!
 
Uli


-- 
[email protected]
030 25491-361

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



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