HighTechTalks DotNet Forums  

Re: Simple question

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss Re: Simple question in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mark Findlay
 
Posts: n/a

Default Re: Simple question - 06-29-2003 , 07:25 PM






Have you tried "key=""test"""?

"David" <zhouw (AT) worldnet (DOT) att.net> wrote

Quote:
Hi, all,
I have a question that must be very simple to many of you. I am using
VB.Net
and I need to print a line below in a file

key="test"

I know in C++ I can write something like cout << "key=\"test\"" << endl; I
try to use the statement like WriteLine( "key=\" test \" " ) and got
error.
Does anyone what is the correct way to print out double quote character in
VB.Net?

Thanks a lot,

David






Reply With Quote
  #2  
Old   
David
 
Posts: n/a

Default Re: Simple question - 06-29-2003 , 08:03 PM






Mark,
Thanks a lot for your help. It works now. I have a another question. In C++,
I can do "\tTest". But in VB.Net, it just directly print out \t rather than
tab. Any idea how to print tab?

Thanks,

David

"Mark Findlay" <mfindlay (AT) speakeasy (DOT) org> wrote

Quote:
Have you tried "key=""test"""?

"David" <zhouw (AT) worldnet (DOT) att.net> wrote in message
news:x5KLa.28813$0v4.2136429 (AT) bgtnsc04-news (DOT) ops.worldnet.att.net...
Hi, all,
I have a question that must be very simple to many of you. I am using
VB.Net
and I need to print a line below in a file

key="test"

I know in C++ I can write something like cout << "key=\"test\"" << endl;
I
try to use the statement like WriteLine( "key=\" test \" " ) and got
error.
Does anyone what is the correct way to print out double quote character
in
VB.Net?

Thanks a lot,

David








Reply With Quote
  #3  
Old   
Mark Findlay
 
Posts: n/a

Default Re: Simple question - 06-29-2003 , 11:18 PM



You could print out the Chr(??) of the TAB key. I don't know what it is for
the tab, but I'm sure an ascii chart would have it. such as Chr(13) or
Chr(10) etc. (except I know that TAB is neither the 13, or 10

So it would be something like: WriteLine("Tab separates" & Chr(??) &
"words")

Mark


"David" <zhouw (AT) worldnet (DOT) att.net> wrote

Quote:
Mark,
Thanks a lot for your help. It works now. I have a another question. In
C++,
I can do "\tTest". But in VB.Net, it just directly print out \t rather
than
tab. Any idea how to print tab?

Thanks,

David

"Mark Findlay" <mfindlay (AT) speakeasy (DOT) org> wrote in message
news:4oudnWUV0IvL6GKjXTWc-w (AT) speakeasy (DOT) net...
Have you tried "key=""test"""?

"David" <zhouw (AT) worldnet (DOT) att.net> wrote in message
news:x5KLa.28813$0v4.2136429 (AT) bgtnsc04-news (DOT) ops.worldnet.att.net...
Hi, all,
I have a question that must be very simple to many of you. I am using
VB.Net
and I need to print a line below in a file

key="test"

I know in C++ I can write something like cout << "key=\"test\""
endl;
I
try to use the statement like WriteLine( "key=\" test \" " ) and got
error.
Does anyone what is the correct way to print out double quote
character
in
VB.Net?

Thanks a lot,

David










Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.