Statalist The Stata Listserver


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

st: possible bug in the -syntax- command?


From   "Zurab Sajaia" <[email protected]>
To   "statalist" <[email protected]>
Subject   st: possible bug in the -syntax- command?
Date   Tue, 9 Jan 2007 16:21:59 -0500

Hi everyone,

I encountered somewhat strange behavior of -syntax- command and was
wandering if it's my fault or there is a problem indeed.
Lets consider this simple program:

capture program drop test
program define test
   syntax [, NOADJust ADJust]

   display "`noadjust'"
   display "`adjust'"
end

test , noadjust
//
it works as expected, but if I change the order of options "syntax [, ADJust
NOADJust]" then `adjust' local contains the value of option but local
`noadjust' is always empty.

Any ideas why it might happen?

Thanks,
Zurab

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