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

st: RE: determining version in ado


From   "Nick Winter" <[email protected]>
To   <[email protected]>
Subject   st: RE: determining version in ado
Date   Fri, 31 Jan 2003 12:44:43 -0500

The function _caller() gives you what you want, as in:

	if _caller()<8 {
		<<do one thing>>
	}
	else {
		<<do something else>>
	}

--Nick Winter

-----------------------------------------------------------
 Nicholas Winter, Ph.D.                     P 202.939.5343
 Policy Studies Associates                  F 202.939.5732
 1718 Connecticut Avenue, NW     [email protected]
 Washington, DC 20009-1148           www.policystudies.com
----------------------------------------------------------- 

> -----Original Message-----
> From: Phil Ender [mailto:[email protected]] 
> Sent: Friday, January 31, 2003 12:24 PM
> To: [email protected]
> Subject: st: determining version in ado
> 
> 
> How can I determine which version of Stata is being used from 
> within an
> ado?  The -version- command does not leave any information in the
> -return list-, in fact, it clears existing return lists.
> 
> Phil
> --
> Phil Ender
> UCLA Department of Education
> UCLA Academic Technology Services
> 
> 
> *
> *   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/
> 
*
*   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