PDA

Click to See Complete Forum and Search --> : How to find string text in list files?


Nov 25th, 2000, 09:56 AM
How to find string text in list files?

Many many thank's.

Claudio Barca

Nov 25th, 2000, 03:01 PM
What do you mean?

Find strings in a Listbox?
Find strings in Text files?

Nov 25th, 2000, 07:38 PM
Assuming you are trying to find a String in a TextBox

nPos = InStr(1, Text1, "MyText")
If nPos <> 0 Then
MsgBox "String found at pos " & nPos
ElseIf nPos = 0 Then
MsgBox "String not found"
End If

Nov 26th, 2000, 08:42 AM
Thank's for your collaboration, but I do find a string text into directory list files, similarly Start Menu, Find, Files or Folders, Search in contents...

In APIs FindFirstFile or FindNextFiles, it's a parameter for finder a text in content of files ????

I'm familiar with the FindFirstFile and FindNextFile APIs,
can you use these for an advanced search for files that contain specified text? If not, what does?

Nov 26th, 2000, 01:27 PM
This search on Vb-World for Finding Files (http://www.vb-world.net/cgi-bin/searchredir.cgi?search=Find+Files&whereto=VBWORLD) may help to get you started.