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

st: Re: double quotes in windows menu command


From   ariley@stata.com (Alan Riley)
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: double quotes in windows menu command
Date   Wed, 23 Apr 2003 12:56:35 -0500

Javier Escobal (jescobal@grade.org.pe) wrote

> I am trying to call a file that is placed in a directory whose name has
> blank spaces:
> 
> for example:
> 
> window menu append item "stUser" "use file" `" use "C:\data\my
> databases\base with imputations.dta" , clear "'
> 
> it doesn seem to work ...it works ok when I dont have blank spaces
> ...

Stata is currently stripping quotes from the action for the menu item.
We will fix this in a future update.  In the meantime, Javier can
work around the problem either by using the spaceless version of
the path (probably something like c:\data\mydata~1\basewi~1.dta)
or by creating a short ado-file to -use- the data and calling that
ado-file from the menu system:

   window menu append item "stUser" "use file" "usebase"

where -usebase- is a short ado-file:

   program define usebase
      version 8.0
      use "C:\data\my databases\base with imputations.dta" , clear
   end


--Alan
(ariley@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/



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