Quotation mark inside quotation

skaboufar

New member
Joined
Mar 30, 2007
Messages
4
Programming Experience
Beginner
Hi im searching in a stream. And want to search for this string: target="ifrContent

But when i put into my code like this:
VB.NET:
Dim srch As String = "target="ifrContent"

I get a end of statement expected error.

I can see why i does it, but hove do i solve the problem.

Im using str.indexof to search and cut with.

Vb express 2005

Regards Skaboufar
 
Put two quotes to signify one inside the quoted string.
VB.NET:
Dim srch As String = "target=""ifrContent"
 
Back
Top