I'm doing a replace() in a string of text but unfortunately there are two " " with in the text. Well, VB isn't liking that, Is there a trick to concantenate the true "" that are surounding my text?
Printable View
I'm doing a replace() in a string of text but unfortunately there are two " " with in the text. Well, VB isn't liking that, Is there a trick to concantenate the true "" that are surounding my text?
Use Chr(34) instead of "Quote:
Originally Posted by dedub
Example:
Code:Text1.Text = Chr(34) & Text2.Text & Text3.Text & Chr(34)
Eh? Sorry? What exaclty are we talking about here? Do you mean you want double quotes? Well, placing two double quotes directly after each other acts as a single double quote character.
i.e.
str = """" & Text1 & """"
Note: """" is four double quotes. One to open the string, two as the double quote character, one to close the string.
To ********, this is what Im doing...
Parsing text of a website. Im using the replace to pull out several instances of this line.
</td><tr bgcolor="#FFFFFF"><td>
notice the qutoes already in the string, that makes it difficult to concantenate. I have not tried HanneSThEGreaT's suggestion yet but Ill let you know
Thanks
No... sorry still don't get what you are trying to do and where your problem lies. Maybe I'm just thick.
So you have this line.. do you want to get rid of it? If so:
Replace myString, "</td><tr bgcolor=""#FFFFFF""><td>", ""
Is that what you mean? If not then please explain what excatly you are trying to do.
Mike, that is exactly what I wanted to do. After I added the xtra "" it worked like a charm and now Im that much smarter with strings, THANKS!
Darrin
no prob. glad you came right