Results 1 to 7 of 7

Thread: Find In Files

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2016
    Location
    Texas panhandle
    Posts
    64

    Find In Files

    Like many programmers, I have a large collection of source code. I wrote this to ease
    searching for text in vb files.

    The file display uses Scintilla, so if you don't have SciLexer.dll here is the Url to get it.
    https://www.scintilla.org/ScintillaDownload.html

    Put the scilexer.dll where LoadLibrary can find it, depending on your OS.

    To get started, click the button opposite 'Path to Search' to set the search path
    then enter desired wild cards, I use *.frm;*.bas;*.cls;*.ctl
    then enter a search term and press return

    The ini class will remember all the combo box items for next use
    Happy coding!
    Attached Files Attached Files
    Last edited by si_the_geek; Aug 17th, 2021 at 11:04 AM. Reason: changed link to SciLexer.dll (due to copyright etc)

  2. #2
    Hyperactive Member
    Join Date
    Jun 2016
    Location
    EspaƱa
    Posts
    508

    Re: Find In Files

    good job

  3. #3
    Hyperactive Member
    Join Date
    Jan 2015
    Posts
    323

    Re: Find In Files

    maybe you can test anytxt searcher, free google desktop search alternative.

  4. #4
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    Re: Find In Files

    Excellent

  5. #5
    Lively Member
    Join Date
    Nov 2020
    Posts
    67

    Re: Find In Files

    Good work!

    A couple of tips:
    1. Insert a DoEvents into the Do While loop
    2. Set the Scintilla font to standard font like Courier New

    Thank.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Sep 2016
    Location
    Texas panhandle
    Posts
    64

    Re: Find In Files

    Leo, I assume you are referring to EFIStrArrWC in mod mTools
    I tend to avoid doevents, instead, I used lstFiles.Refresh

    You can set your desired font name, size in cSci.InitSci

  7. #7
    Lively Member
    Join Date
    Nov 2020
    Posts
    67

    Re: Find In Files

    Quote Originally Posted by VBClassic04 View Post
    Leo, I assume you are referring to EFIStrArrWC in mod mTools
    I tend to avoid doevents, instead, I used lstFiles.Refresh
    If the search is long, without the DoEvents the application after a while 'does not respond' and the status bar stops updating.

    Quote Originally Posted by VBClassic04 View Post
    You can set your desired font name, size in cSci.InitSci
    I know.

    Mine are just suggestions.

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