Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Unexpected syntax error in a graphics command


From   Sergiy Radyakin <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Unexpected syntax error in a graphics command
Date   Mon, 16 Dec 2013 20:42:19 -0500

Use of commas to switch back and forth between the command and options
has been discussed before:
http://www.stata.com/statalist/archive/2013-10/msg00837.html

Here is an example which relies on this mechanism, but although the
two commands are seemingly identical, the second is producing a syntax
error.

do http://radyakin.org/statalist/statabugs/bug_syntax_graphics.do

It seems that Stata is sensitive to the a placement of a whitespace in
graphics commands.

(Stata 9.2-13.1 for Windows).

My understanding is that everywhere where a comma is permitted, a
space-and-comma may be used instead. For example, -list- cooperates :
list in 1/10, clean, if price>4000
list in 1/10, clean , if price>4000

If there are any other exceptions from this rule (besides the
demonstrated graphics command), I'd like to know. (this is important
for in-program code generation).

Best,
   Sergiy Radyakin
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index