• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print number of arguments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Print number of arguments

    Where I can find the methods of Print() ??

    Can I use multiple parameters to Print()?

    For example I want to Print an array and text;

    int[] mumbers={2,3};

    Print(" The numbers are {0} & {1} ",numbers[0], numbers[1]);

    I have tried this code and its not working.

    Someone could help me?

    Thank you

    Luis

    #2
    Hello Luis,

    Thank you for your post.

    You can information on Print() at the following link: http://www.ninjatrader.com/support/h.../nt7/print.htm

    For the Print() here we would use the following:
    Code:
    Print(" The numbers are {0} & {1} " + numbers[0] + numbers[1]);
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by BelikeWater View Post
      Where I can find the methods of Print() ??

      Can I use multiple parameters to Print()?

      For example I want to Print an array and text;

      int[] mumbers={2,3};

      Print(" The numbers are {0} & {1} ",numbers[0], numbers[1]);

      I have tried this code and its not working.

      Someone could help me?

      Thank you

      Luis
      You are missing the String.Format directive in that statement.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Darringona, Today, 07:43 AM
      0 responses
      3 views
      0 likes
      Last Post Darringona  
      Started by simonkloot, Today, 07:28 AM
      0 responses
      6 views
      0 likes
      Last Post simonkloot  
      Started by marcus2300, Today, 06:24 AM
      0 responses
      4 views
      0 likes
      Last Post marcus2300  
      Started by Dhjesus, Today, 06:23 AM
      0 responses
      7 views
      0 likes
      Last Post Dhjesus
      by Dhjesus
       
      Started by embreyw, Today, 05:56 AM
      0 responses
      6 views
      0 likes
      Last Post embreyw
      by embreyw
       
      Working...
      X