Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: st: Db with an ado


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: Db with an ado
Date   Wed, 29 Apr 2009 16:04:36 +0200

<> 

I would not jump to this conclusion. Towards the end of 

*************
help dialog_programming
*************

remarks 5.5, there is a statement to the effect that " Dialogs that are launched by using the db command cause Stata to become busy and remain busy until the dialog is completely loaded."

If you run Rajesh`s commands interactively, there is no problem. If you run them from a do/ado-file, as his subject line seems to indicate, then Stata waits for your input from the dialog box, gets it, executes the rest of the do file with the "_request" and immediately afterwards implements the u-action from the dialog box, which subsequently is soaked up as the answer to the request...


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Maarten buis
Gesendet: Mittwoch, 29. April 2009 15:53
An: [email protected]
Betreff: Re: st: Db with an ado


--- On Wed, 29/4/09, Tharyan, Rajesh wrote:
> When I issue a command followed by by a request statement
> as in something like below..
> 
> . db use
>  . di "do you want to list: (enter 1 for yes 2 for no)
> " _request(_answer)
> do you want to list: (enter 1 for yes 2 for no) . use
> "C:\data\results.dta", clear
> 
> Stata automatically uses the echo from the db use command
> as _answer. Is there anyway to prevent this?

Sounds like there is something wrong with your Stata 
instalation. The first thing you could try is type:

update all
update swap

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://home.fsw.vu.nl/m.buis/
-----------------------------------------





      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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