• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

Extracting all Msgbox lines from the project/projectgroup

Hello,

I have a sizable project/project group (with many forms,modules,usercontrols)....What I need to do is extract all the Msgbox statements from all the source componenets of this project/projectgroup and write to a notepad file.

How can I do this?

Thanks
Kamur
0
kamur
Asked:
kamur
1 Solution
 
dancebertCommented:
Copy all the source code files into a single directory

Use the FileSystemObject to open a file called Results.txt

For each file in the directory:
    Use the FileSystemObject to open the file
    For each line in the file:
        If InStr("Msgbox") then
            Output this line to Results.txt, followed by a vbCrLf
        End if
    Next
Next
0
 
AlexFMCommented:
Use "Find in files" functions available in VC++.
0
 
kamurAuthor Commented:
thanks dancebert. that was easy, i was thinking i would have to search in binary files also. regards.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now