Statalist


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

st: RE: syntax, programming


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: syntax, programming
Date   Mon, 4 Feb 2008 16:01:21 -0000

In addition to Maarten's helpful reply, see the posting on -args- I sent to the list last Friday, which covers some intersecting issues. 

Nick 
n.j.cox@durham.ac.uk 

Jochen Späth

I am currently trying to write an ado-File for the creation of so-called 
smop (surface measure of overall performance) values and in the very 
first lines of code I have encountered the following problem:
Using STATA's syntax command variables entered by the user of the 
program are stored as a local macro `varlist'. So, how can I access the 
contents of `varlist' "one by one", i.e. how can I adrress each element 
of  `varlist' separately? - What I do not want is to make use of a loop 
such as foreach... Any ideas?

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index