How to split a single line!!

  • Thread starter Thread starter Jay Balapa
  • Start date Start date
J

Jay Balapa

Hi,

I want to do the following-
But it is giving me an error-

mySB.AppendFormat(" Hello "

"How Are You{0}",

strName);



I was able to do this in C++.



Thanks

Jay
 
For concatanate strings use the "+" sign:

mySB.AppendFormat(" Hello "+
"How Are You{0}",
strName);

Regards,
 
mySB.AppendFormat(@" Hello
How Are You{0}",
strName);


the @-operator makes it possible.
 
codymanix said:
mySB.AppendFormat(@" Hello
How Are You{0}",
strName);


the @-operator makes it possible.

Note however that that means the line break is in the string itself,
which it wouldn't be in C/C++.
 
Back
Top