troubleshooting Question

Search for text and print the paragraph it appears in

Avatar of eric68
eric68 asked on
Visual Basic Classic
7 Comments1 Solution267 ViewsLast Modified:
I am trying to search for all occurences of a string in a text file (using Visual Basic 6).  If the string is found anywhere in the paragraph, I want to display the whole paragraph in a text box.  If the string appears in 3 paragraphs within the one text file, I would like to display all three paragraphs in the same text file.  I am using InStr() to search for the string and I can print the one line that it appears in, but I'm not sure how to print the whole paragraph.  Thanks!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros