if dir exist

Richard Gaskin ambassador at fourthworld.com
Thu Dec 23 16:25:11 EST 2004


On the use-rev list Paul Salyers wrote:
> I'm trying to get out on VB thinking and into Rev
> 
> I searched under exist and fount nothing. Can some1 help with this code?

Hmmm.... this is another interesting search anomaly.

Had you searched for the English singular verb form "exists" (e.g. "if 
this exists then...") you would have found the "exists" function.  While 
that function only tests the existence of objects, it has a See Also 
item that points to the "there is" operator for files and folders.

But since "exist" is a substring of "exists", it would be nice if there 
was a substring option to compliment the whole-word search apparently 
driving the docs now.

Yesterday's search was similar:  you had searched for "keyPress", which 
is a programmer term, but had you searched for the English phrase "key 
press" you would have found what you were looking for quickly.

As we explore the strengths and weaknesses of the docs' Search tool 
here, I'm taking notes and passing them along to those who might be able 
to improve its results. So please keep 'em coming:  anytime you don't 
find something easily, dropping a note here not only gets you the answer 
but also makes folks aware of ways to improve the usefulness of the docs.

In the meantime, perhaps one general rule these searches suggest for 
better results is to try the common English form of a phrase when the VB 
  term doesn't turn up what you'd expect.

Thanks for the post.

--
  Richard Gaskin
  Fourth World Media Corporation
  __________________________________________________
  Rev tools and more: http://www.fourthworld.com/rev


More information about the use-livecode mailing list