x


Combining several strings into a single one?

The question says it all; I have several separate string variables and need to be able to add all of them to one single string. I don't have the slightest idea on how to do this, so any help would be appreciated. I'm using Unity Iphone if that helps at all, haha.

Thanks!

more ▼

asked Mar 01 '10 at 11:09 PM

LHP gravatar image

LHP
101 7 8 14

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
var string1 = "a";
var string2 = "b";
var stringCombo = string1 + string2;
more ▼

answered Mar 01 '10 at 11:14 PM

Eric5h5 gravatar image

Eric5h5
80.1k 41 132 519

It's that simple? haha. Thanks alot

Mar 02 '10 at 09:45 PM LHP
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5054
x1998
x418

asked: Mar 01 '10 at 11:09 PM

Seen: 1962 times

Last Updated: Mar 01 '10 at 11:09 PM