473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to split a single line!!

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


Nov 15 '05 #1
4 1100
add "+" between the "Hello" and the "How are you.."

"Jay Balapa" <jb************@atginc.com> wrote in message
news:uk*************@tk2msftngp13.phx.gbl...
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

Nov 15 '05 #2

For concatanate strings use the "+" sign:

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

Regards,

"Jay Balapa" <jb************@atginc.com> wrote in message
news:uk*************@tk2msftngp13.phx.gbl...
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

Nov 15 '05 #3
mySB.AppendFormat(@" Hello
How Are You{0}",
strName);
the @-operator makes it possible.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 15 '05 #4
codymanix <de********@gmx.net> wrote:
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++.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: DLP22192 | last post by:
I have the following single-line if statement that is evaluating true even though it shouldn't. I have never seen this before and I am concerned that this can happen in other areas of my code. ...
7
by: bclegg | last post by:
Hi, I have a Monitoring application that needs to output single line summaries to a local dot matrix printer loaded with line flow. ie. It will have exclusive use of the printer which is connected...
8
by: Jim | last post by:
Is there some easy way to split a line, keeping together double-quoted strings? I'm thinking of 'a b c "d e"' -- .. I'd also like 'a b c "d \" e"' -- which omits any s.split('"')-based...
3
by: saad82 | last post by:
I want to be able to replace a single line in a large text file (several hundred MB). Using the cookbook's method (below) works but I think the replace fxn chokes on such a large chunk of text. For...
2
by: sk.rasheedfarhan | last post by:
Hi , I have to extract a xml file line by line. Here is my xml Step1: <category name= "name" guid="{guid}"state="enabled"> Step2: <rules> Step3: <rule name="rule name" guid="{guid}"...
1
by: Nethra | last post by:
Hi... I am trying a program which convert the multiline comment type in a program to single line comment type ie. /*have a nice day */ to //have a //nice day
0
by: machhalemukesh | last post by:
I am new to regular Expressions. I have two different regex to match email & phone no. I want to match following & split it accordingly. "Email: m_machhale@gmail.com" "Phone No: 45786547546"I have...
1
by: arulkumara | last post by:
Hi, I have one problem in mysql. how to split single row into multiple columns in mysql. my table structure: id salaryhigh salarymedium salarylow...
2
by: =?Utf-8?B?Umljaw==?= | last post by:
How do I create a textbox with a single line border so when I type text in the box it will look like underlined?
1
by: vikastcser | last post by:
Hi All , I have a table where four rows are there and each row has two tds.one td is for label and two image icons and other td is used for keeping numeric values. I am able to accomodate digits...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.