This is for StataCorp to answer, but two small
comments on the side.
I note that this does change the behaviour of
-lookfor- but a first impression is that it does
so in a useful way.
But why wait for the company to act? Clone and modify
the file, change the name and you have what you
want as your own extension.
Nick
[email protected]
Sergio Correia
> Since I learned about -lookfor- a short time ago, I've found it
> incredibly useful specially for searching inside variable
> descriptions. However, when trying to match a string with more than
> one word, -lookfor- does something slightly undesirable.
>
> When I enter -lookfor gdp inflation-, I expect -lookfor- to find
> matches containing gdp or inflation. That, the command does fine.
>
> However, if i write
> lookfor "Gross Domestic Product"
> I expect the program to match exactly that phrase (either in lowercase
> or uppercase). Instead, I get all variables containing gross, domestic
> or product.
>
> Looking at the code, just changing one line could "fix" this:
>
> Change line 12 from
> local looklist `"`looklist' `w'"'
> To
> local looklist `"`looklist' "`w'""'
> That is, just add two quotes.
>
> Obviously this doesn't deserve a new command, but is it worthy to
> request StataCorp to change this? Or is there something I overlooked?
*
* 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/