troubleshooting Question

print a line as many times a string is found (easy stuff)

Avatar of jsctechy
jsctechyFlag for United States of America asked on
Visual Basic Classic.NET ProgrammingVisual Basic.NET
4 Comments1 Solution146 ViewsLast Modified:
hi,
I have a long string that needs to be break out and writea line per each break.
I have the following string:
"Somename <ad@somedomain.com>; someothename<ed@somedomain.com>;thirdName <th@somedomian.com>"
so what i need to do is read the string and per each ; found the write the following line:
Mail.To.Add(string found)

so from my example above this is hat it shuld write
Mail.To.Add(Somename <ad@somedomain.com>)
Mail.To.Add(someothename <ed@somedomain.com>)
Mail.To.Add(thirdName <th@somedomian.com>")

How can i write this loop?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
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 4 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