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]

Re: st: A problem related to Comments


From   Eric Booth <[email protected]>
To   "<[email protected]>" <[email protected]>
Subject   Re: st: A problem related to Comments
Date   Sun, 3 Jul 2011 16:56:00 +0000

<>

You're likely using  //  or /* */  to indicate comments.  
Instead, use * to indicate comments in your do-file as these are the only comment indicators that can be used interactively (in the command window).  See -help comments- 

- Eric

__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
[email protected]
Office: +979.845.6754


On Jul 3, 2011, at 11:51 AM, Mayank Mishra wrote:

> Hi all,
> 
> I have a problem. Lets say I am working on a do file with comments.
> The comments are fine when I run the do file as do file. But, when I
> run a part of the code copied from the do file and pasted in command
> window, which includes comments, Stata considers the comments as part
> of code. So, apparently either I have to delete the comments or copy
> the code in a manner in which the comments are avoided. Both are
> undesirable for me. So, please tell me as to how can I avoid comments
> in such case.
> 
> Thank You.
> 
> OM
> *
> *   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/




*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index