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: [email protected] (Vince Wiggins, StataCorp)
To: [email protected]
Subject: Re: st: Clickable examples in ado help files
Date sent: Thu, 18 Sep 2003 13:25:31 -0500
Send reply to: [email protected]
> Mark Schaffer <[email protected]> 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 <[email protected]> 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
> [email protected]
>
> *
> * 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/