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

Re: st: quotes and dialog boxes


From   [email protected] (Jean Marie Linhart, StataCorp.)
To   [email protected]
Subject   Re: st: quotes and dialog boxes
Date   Fri, 31 Oct 2003 09:16:59 -0600

Michael Hills ([email protected]) asked:

> It seems that the general style when entering text in dialog boxes
> is that you don't need quotes, but you can put them in if you want
> to. However, in db label, labelling a dataset with "Blah blah"
> produces the command . label data ""Blah blah"" and an error
> message. The behaviour I expected is that you would get . label data
> "Blah blah" whether you enter quotes or not in the dialog box.
> 
> Is this a bug?

The Dialog Mistress says no.  The dialog box needs to put quotes here.
Otherwise when a user puts a string with spaces into this dialog box, 
s/he will get an error.  It is quite reasonable to label a dataset
with a string with spaces in it.  It is my sincere belief that when a 
user, such as Mr. Hills, puts  "Blah Blah" (quoted) into that box and
sees the output and error that s/he is  going to figure out how to fix
that in a huge hurry.

Nick Cox suggested perhaps these should be compound double quotes.
Now, I may be missing something here, but I haven't yet found a good
way to do that in this dialog programming context.  So regular quotes
it is, until I (or a Dialog Minion) becomes enlightened.

--Jean Marie
[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/



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