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

st: Re: programming a version number check

From   Kit Baum <>
Subject   st: Re: programming a version number check
Date   Mon, 26 Sep 2005 09:10:08 -0400

Mark wants to find the version of another ado-file. If the other ado is under your control, write it so that if called with the 'version' option it does nothing but squawk r(version) or e(version). If it isn't, but it does return r (version)or e(version), capture its call and call it with some dummy args. If the other ado-file is not under your control and it doesn't return its version (e.g. official ivreg.ado), you're out of luck.

Kit Baum, Boston College Economics

On Sep 26, 2005, at 2:33 AM, statalist-digest wrote:

Using -findfile- to get the path to the ado, opening the ado with - file-,
and then messing about with file i/o is unappealing, though I suppose it
could be made to work. Is there anything easier?

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index