0

I have an issue with finding a specific text within a string and then replacing it with " ", which is just a blank entry.

Dim ABCTEST As String
ABCTEST = previousJob.Comments.ToString() + currentJob.Comments.ToString()

So now my issue is to search the ABCTEST text and delete text such as "Tier Market" from it. Then pass it to a new string perhaps ABCTEST_NEW.

I know I might have to use a for loop to search out the keywords, but all the examples I have had a look at, are very broad.

1
  • Use of "&" is recommended over "+" for string concatenation in VB.NET (it is different in C#). Commented Oct 12, 2016 at 14:41

1 Answer 1

4
ABCTEST_NEW = ABCTEST.Replace("Tier Market", " ")

String.Replace method

http://msdn.microsoft.com/en-us/library/fk49wtc1.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.