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

Re: st: Clickable examples in ado help files


From   "Mark Schaffer" <M.E.Schaffer@hw.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Clickable examples in ado help files
Date   Thu, 18 Sep 2003 19:38:14 +0100

Thanks, Vince.  All I had to do was move the " 4 spaces to the left 
and voila!  Clickable help file data downloads.  Much appreciated!

--Mark

From:           	vwiggins@stata.com (Vince Wiggins, StataCorp)
To:             	statalist@hsphsun2.harvard.edu
Subject:        	Re: st: Clickable examples in ado help files
Date sent:      	Thu, 18 Sep 2003 13:25:31 -0500
Send reply to:  	statalist@hsphsun2.harvard.edu

> Mark Schaffer <M.E.Schaffer@hw.ac.uk> asks about clickable commands in help
> files and also notes some difficulty using the SMCL tag {stata ...} to load
> datasets over the net,
> 
> > [...] I tried to put a clickable command to load the data in the
> > help file with the command
> >
> > {stata use "http://fmwww.bc.edu/ec-p/data/macro/abdata.dta"; : . stata 
> > use http://fmwww.bc.edu/ec-p/data/macro/abdata.dta}   
> 
> Mark notes that he doesn't get what he wants on the screen and clicking the
> link produces an error message, rather than load the data.  I agree with Nick
> Cox <n.j.cox@durham.ac.uk> that the best idea is often to run a program that
> preserves the data, but Mark can make his SMCL help file load this dataset.
> The problem with the construct Mark is using is that while -use- does not need
> this particular file name bundled in quotes, the SMCL tag {stata ...} DOES
> need the full command name bundled in quotes.  Using
> 
> {stata "use http://fmwww.bc.edu/ec-p/data/macro/abdata.dta"; : . stata use http://fmwww.bc.edu/ec-
p/data/macro/abdata.dta}
> 
> into the help file, works under both Stata 7 and Stata 8.
> 
>  
> -- Vince 
>    vwiggins@stata.com
> 
> *
> *   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/


Prof. Mark E. Schaffer
Director
Centre for Economic Reform and Transformation
Department of Economics
School of Management & Languages
Heriot-Watt University, Edinburgh EH14 4AS  UK
44-131-451-3494 direct
44-131-451-3008 fax
44-131-451-3485 CERT administrator
http://www.som.hw.ac.uk/cert
*
*   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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index