![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2008
Posts: 123
Thanks: 0
Thanked 1 time in 1 post
|
String Concatenation
To append one string to another string use the "+" character. // Example of string concatenation string wordOne = "Ninja"; string wordTwo = "Trader"; Print(MyInteger.ToString()); The above example would print out NinjaTrader to the NinjaTrader output window. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Yes, should be:
Print(wordOne + wordTwo); Thans for pointing this out.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BarsPeriod typo | ATI user | Strategy Development | 5 | 01-28-2009 07:59 AM |
| How to download files?? | DeeLow | NinjaScript File Sharing Discussion | 1 | 10-28-2008 07:49 AM |
| MBT warning must be typo (?) | Tasuki | Installation and Licensing | 1 | 07-28-2008 03:10 PM |
| Documentation Typo | CashCache | Historical NinjaTrader 6.5 Beta Threads | 1 | 01-12-2008 02:12 AM |
| Sound files... | funk101 | General Programming | 3 | 04-29-2007 07:51 PM |