PDA

View Full Version : Help file error ?


grd974
07-30-2007, 12:28 AM
Looking for the concatenation operator in NT help file I could not find it but I found this :

// Example of string concatenation
string wordOne = "Ninja";
string wordTwo = "Trader";
Print(MyInteger.ToString());

NinjaTrader_Josh
07-30-2007, 12:44 AM
If you want to combine two strings together just use the + operator.

private string string1 = "Hi. ";
private string string2 = "Bye.";
private string stringcombo;

stringcombo=string1+string2;
Print(stringcombo);

The output of my example above is simply "Hi. Bye."
Hope that helps.