Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently April 26th, 2024, 7:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Search within a text file
PostPosted: October 15th, 2021, 11:34 am 
Offline

Joined: August 23rd, 2011, 11:36 am
Posts: 10
Hi

I'm looking for a way to do a search within a text file of about 9000 place names, preferably with the results appearing as you type, like you see on travel ticket booking websites etc. The more letters you enter the closer the match, with the 'clickable' results shown below. The selected result then needs to be copied to a variable.

This is for a Windows exe publication

Any pointers would be very much appreciated


Top
 Profile  
 
 Post subject: Re: Search within a text file
PostPosted: December 2nd, 2021, 4:23 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
I don't think you can search text file - you'd have to read it all into an array and loop through that.

However, it sound like something you might want to look at using a database for with an SQL query.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group