A string that contains speech marks

daryl4356

Member
Joined
May 30, 2006
Messages
13
Programming Experience
Beginner
Hi all,
Firstly sorry if this is very simple but I am a complete novice.

i am tring to write an app which creates HTML pages.
To do this my strings will need to contain speech marks for the hyperlinks. how do i type these so they apppear as hyperlinks when i create the text files to convert to html pages? VS2005 thows errors if i just type " "

I know this is probably not the best and effective way to do this but i will approach that in a different post, your helo on typing speech marks into strings will be a great help though.

Thanks
Daryl
 
To include double quotes in a literal string you need to escape them with another double quote:
VB.NET:
Dim myString As String = "He said ""Hello"" to me."
myString will contain: He said "Hello" to me.
 
Back
Top