Computing.Net > Forums > Programming > Visual Basic 6 Search List?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Visual Basic 6 Search List?

Reply to Message Icon

Name: Cute0
Date: March 10, 2004 at 02:43:28 Pacific
OS: winxp
CPU/Ram: 256
Comment:

Ok umm here i want to know how to make a search system, when i type a name and on searching it should search various text files in the file exenction ".scd" when in each there would be a list of names like

I search for BooCreature then

File: umm.scd

SunFlower
Weee
CutieBunny
AwwwKitty
BoardMaster

File: Goody.scd

SleepyBunni
NoooZone
Creature god
Boo
BooCreature

here the search should display matching results in a text list box or something:

BoardMaster
Boo
BooCreature
Creature god

well you understand, i'm a very biggner but i have to get this system done but i have no idea on how to do this :(

Help Appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: Scouseknight
Date: March 10, 2004 at 16:22:31 Pacific
Reply:

As far as I can make out the easiest way would be to :

Capture the search string using the form.

Build a list of files matching the extension you want.

Loop around this list, opening each file in turn, and reading it line by line.

For each line read, perform an InStr on it to see if the search string is found - store this result in an array or something ready for the output.

Output the results.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Visual Basic 6 Search List?

List Databses is Visual Basic 6 www.computing.net/answers/programming/list-databses-is-visual-basic-6/15612.html

Visual Basic 6.0 Sample Application www.computing.net/answers/programming/visual-basic-60-sample-application/11659.html

DirectX 8.1 SDK w/ Visual Basic 6 www.computing.net/answers/programming/directx-81-sdk-w-visual-basic-6/249.html