Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Programming question


From   "S Mahmud" <salah@eircom.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Programming question
Date   Wed, 26 Jun 2002 14:37:54 +0100

If you write:

program define myprog
   version 7
   syntax [varlist]


Stata validates the list of the variable names passed by the user and
complains if a variable does not exist e.g.

. myprog  unknownvar
variable unknownvar not found
r(111);


However, the insheet internal command apparently allows the user to enter a
list of names for non-existing variables without a problem. Is it possible
to do the same thing from an ado command? And how?


Regards



Salah




*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index