Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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
BoardMasterFile: Goody.scd
SleepyBunni
NoooZone
Creature god
Boo
BooCreaturehere the search should display matching results in a text list box or something:
BoardMaster
Boo
BooCreature
Creature godwell 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.

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.

![]() |
![]() |
![]() |

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