Speech marks outside a variable

Trinitrotoluene

New member
Joined
Mar 20, 2008
Messages
2
Programming Experience
Beginner
This is a part of the code I am writing
VB.NET:
objStreamWriter.WriteLine("NAME: " & avgnamevariable & "")

It is basically outputting lines to an ini file. I need for the final output to be
NAME: "Name here"

However, I need name here to be the variable. It won't let me put the double inverted commas around it as normal. Any suggestions?
 
Who let the lazy programmer in here!? jmcilhimmey is correct, you should unescape the quotes for readability.

VB.NET:
objStreamWrite.WriteLine("Name: " & ControlChars.Quote & avgnamevariable & ControlChars.Quote
 
Back
Top