NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-07-2009, 05:00 PM   #1
mktrend
Senior Member
 
Join Date: Apr 2008
Posts: 123
Thanks: 0
Thanked 1 time in 1 post
Default is this a Typo in the Help files?

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.
mktrend is offline  
Reply With Quote
Old 03-08-2009, 07:56 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Yes, should be:

Print(wordOne + wordTwo);

Thans for pointing this out.
NinjaTrader_Ray is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 11:51 AM.