Re: New line code doesn't work

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Richard A. Lowe (chadich_at_yumspamyumYahoo.com)
Date: 01/15/05


Date: Sat, 15 Jan 2005 11:10:06 -0600

You're doing the right thing, the command window just shows strings that way
(at least by default, maybe there's a way to change it?)

-- 
C#, .NET and Complex Adaptive Systems:
http://blogs.geekdojo.net/Richard
"STom" <stombiztalker@hotmail.com> wrote in message 
news:ucweBDy%23EHA.3376@TK2MSFTNGP12.phx.gbl...
Here is the code I have:
String strCmd = "";
strCmd = strCmd + "CREATE PROCEDURE GetAllModels2" + "\r\n";
strCmd = strCmd + "AS";
strCmd = strCmd + "BEGIN" + "\r\n";
strCmd = strCmd + "SELECT * FROM tblModels" + "\r\n";
strCmd = strCmd + "END" + "\r\n";
strCmd = strCmd + "GO";
When I look at strCmd in the command window, I still see the \r\n 
characters. I want new lines. Am I doing something wrong here?
Thanks.
STom 


Relevant Pages

  • Re: New line code doesnt work
    ... STom wrote: ... > When I look at strCmd in the command window, ... > characters. ...
    (microsoft.public.dotnet.languages.csharp)
  • New line code doesnt work
    ... strCmd = strCmd + "AS"; ... When I look at strCmd in the command window, I still see the \r\n characters. ... STom ...
    (microsoft.public.dotnet.languages.csharp)