Ross,
It depends on the size of your data. Director's text searching is
pretty fast. If you can load all of the text into a cast, you can zip
through it using "contains". Or you could do more complex stuff with
pregEx.
If it's not doable that way, then you could use a database and build
your own index. You scan all of the text once and store each
non-trivial word along with data describing where it is. Most simply,
you have a table with three columns:
word :: filename :: word_pos
Beyond that, you can also use functions built-in to your database for
searching text. I don't know if Valentina does this, but I'll bet
Ruslan will tell you if so.
Good luck,
Dave
On Mar 15, 2006, at 4:29 PM, Ross Clutterbuck wrote:
Hi List
This is more of a general programming query than a Lingo-specific one.
I've been asked to build a search facility into a project. I'm ashamed
to admit it, but it's been many many years since I did any programming
outside of the multimedia-focused stuff of Director and Flash and I'm
totally stumped now on how to achieve this.
From what I can remember, it's going to be easier to index the
contents of
these text files and then search this index instead of going through
all the files every time I perform a search. Trouble is though I have
no idea where to begin, how indexing really works and thus how to go
about it.
Enlighten me on the concepts so I know where to start and I can take
the Lingo from there!
TIA
Ross
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]