NinjaTrader Support Forum  

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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-17-2011, 04:12 AM   #1
rjngh2005
Member
 
Join Date: Oct 2010
Location: Los Angeles,CA
Posts: 47
Thanks: 17
Thanked 1 time in 1 post
Default unable to print

Using NT 6.5

I am trying to create a strategy
I tried the following
int abc=14;

Print (abc.ToString);

When I tried to compile I get the following error

CS 1502


Please assist
rjngh2005 is offline  
Reply With Quote
Old 06-17-2011, 04:21 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Please try Print (abc.ToString()); since ToString() is a method.

Thanks,
NinjaTrader_Bertrand is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Bertrand for this post:
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
Print doesn't print every time... Owlman General Programming 6 02-23-2011 12:59 AM
Print doesn't print when CurrentBar ==0 Lost Trader General Programming 3 08-13-2010 10:03 AM
Print() duck_CA Strategy Development 2 03-07-2009 01:18 PM
Print() help frogzillafx Indicator Development 5 10-21-2008 10:26 AM
Print() WDieter General Programming 2 05-23-2008 10:55 AM


All times are GMT -6. The time now is 12:37 AM.