Neat. 
Nick 
[email protected] 
Nick Winter
 
> Assuming you can be sure that the varlist is tokenized with 
> single spaces, 
> with no leading or trailing spaces (which should be true if it comes 
> through -syntax-, how about:
> 
>   . local varlist : subinstr local varlist `" "' `"", ""' , all
>   . local varlist `""`varlist'""'
> 
> The first step changes each space into ", "
> the second step adds the leading and trailing quotation marks.
*
*   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/