Results 1 to 5 of 5

Thread: How to find string text in list files?

  1. #1
    Guest

    Unhappy

    How to find string text in list files?

    Many many thank's.

    Claudio Barca

  2. #2
    Guest
    What do you mean?

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

  3. #3
    Guest
    Assuming you are trying to find a String in a TextBox
    Code:
    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

  4. #4
    Guest

    Wink

    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?

  5. #5
    Guest
    This search on Vb-World for Finding Files may help to get you started.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width