Solved

Extracting all Msgbox lines from the project/projectgroup

Posted on 2003-11-28
3
233 Views
Last Modified: 2012-05-04
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
Comment
Question by:kamur
3 Comments
 
LVL 9

Accepted Solution

by:
dancebert earned 100 total points
ID: 9838909
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
 
LVL 48

Expert Comment

by:AlexFM
ID: 9839205
Use "Find in files" functions available in VC++.
0
 

Author Comment

by:kamur
ID: 9840605
thanks dancebert. that was easy, i was thinking i would have to search in binary files also. regards.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question