The Daily Click ::. Forums ::. Klik Coding Help ::. Custom search engine?
 

Post Reply  Post Oekaki 
 

Posted By Message

Faithtoken

Never Ending Story

Registered
  03/07/2002
Points
  99
26th March, 2012 at 26/03/2012 23:11:46 -

Hello, I'm working on a little tool to make work a little bit easier at my job.

I would like to make a program that searches a file for lines containing the word you write. Preferably live, while writing.

For example a file with:

STO - Stockholm (Sweden SE)
Stockholm - STO (Sweden SE)
ARN - Arlanda (stockholm, STO, Sweden SE)
Arlanda - ARN (stockholm, STO, Sweden SE)
UME - Umea (Sweden SE)
Umea - UME (Sweden SE)


And if you write: Ar
it would show the lines:

Arlanda - ARN (stockholm, STO, Sweden SE)
ARN - Arlanda (stockholm, STO, Sweden SE)


Any tips? As it is now, I have a combo box (with the lines) and an edit box (that you write in).
It's live but it only shows one line, and you have to be completely accurate, and the word has to be in the beginning of the line.


 
Current projects: "Vollo Arena"
God bless you

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
28th March, 2012 at 28/03/2012 14:55:57 -

Hi Faithtoken,

This is how I'd do it, http://www.whenthereisnoroominhellthedeadwalktheearth.com/MMF/search.mfa

It's only 4 lines of code. It searches for matches anywhere in the line, and the query can be uppercase, lowercase or a combination.

Image

 
n/a

Faithtoken

Never Ending Story

Registered
  03/07/2002
Points
  99
30th March, 2012 at 30/03/2012 06:13:18 -

Awesome!
Thank you very much. Here, take 30 points.

Edited by Faithtoken

 
Current projects: "Vollo Arena"
God bless you
   

Post Reply



 



Advertisement

Worth A Click