all groups > dotnet windows forms > april 2006 >
You're in the

dotnet windows forms

group:

Print command with ""


Print command with "" tmoeller
4/27/2006 11:31:01 PM
dotnet windows forms:
Hi,

my program uses the Print command like
Print(a, "Language=" & language)
to print a textline in my text file.
In the text file I need a format like
Language="my language"

How do I get the additional quotation marks?

Regards
Re: Print command with "" Greg Young [MVP]
4/28/2006 3:15:03 AM
use "" within a string to represent a quote ...

i.e.

"""Greg"" was here"
translates to
"Greg" was here

Cheers,

Greg

[quoted text, click to view]

Re: Print command with "" Greg Young [MVP]
4/28/2006 3:16:09 AM
Another option is to use ControlChars.Quote

Cheers,

Greg
[quoted text, click to view]

Re: Print command with "" Chris Dunaway
4/28/2006 1:45:39 PM
If you're using C# you use the \" escape sequence to insert a quotation
mark:

string s = "Language = \"" + mylanguage + "\"";
AddThis Social Bookmark Button