Statalist


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

RE: st: Re: Two-word commands with gettoken


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Re: Two-word commands with gettoken
Date   Mon, 9 Mar 2009 10:14:51 -0000

An extra space will do no harm and might do good. 

local 0 `subcmd' `0' 

Nick 
[email protected] 

Sergiy Radyakin

after -gettoken- the local `0' does not contain `subcmd' anymore, so

1) just put it back there:

gettoken subcmd 0: 0
local 0 `"`subcmd'`0'"'  // <<<---- new line
if ....


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