English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to concatenate three strings called Month, Balance, and Interest. What's the correct syntax in C#?

2006-09-19 09:06:01 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

the simplest answer to this would be simply doing the following
String trial ;
trial =+ "what ever I want to add here";
trial =+ "here i add some more to the string";

Hope this helps

2006-09-19 09:24:13 · answer #1 · answered by yairs2000 3 · 0 1

Hi, its me again. There is a Concat function of the String class or you can use the overloaded + operator.

String.Concat(Month, Balance.ToString());

strVariable = Month + Balance.ToString() + Interest.ToString();

Hope this is what you were looking for.

2006-09-19 09:25:15 · answer #2 · answered by Martyr2 7 · 0 0

fedest.com, questions and answers