From | Richard Williams <[email protected]> |
To | [email protected] |
Subject | Re: st: What's wrong with -syntax, [now]-? |
Date | Wed, 22 Jun 2005 14:43:00 -0500 |
At 02:47 PM 6/22/2005 -0400, Chris Ruebeck wrote:
This post seems trivial, but the issue did cost me some non-trivial debugging time.Actually, you can have an option called "now" BUT you have to start it with one or more capital letters in the syntax command, e.g.
It seems that an option named "now" won't work. It can't be that option names must have more than three characters, because an option named "yes" works. I used -search now- to see if it's a reserved word, but got no hits. Although -findit now- is an amusing command to issue, it's also not surprising that too many results are returned to be useful for investigation of this minor annoyance.
Eureka (just as I was composing the subject for this post)! I'll continue to post it anyway for the interest of the non-gurus on the list. It's the fact that "now" begins with "no". See /optionally_off/ in -help syntax-.
Chris
. program define junk
1. syntax , [now]
2. di "`now'"
3. end
. junk, now
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |