Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Print() Method

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

    Print() Method

    Print() is going to next line after executing, is there any way of preventing that so I can use multiples "prints" in the same line?

    Example:

    2456

    instead of
    2
    4
    5
    6

    Thank you

    Luis

    #2
    Originally posted by BelikeWater View Post
    Print() is going to next line after executing, is there any way of preventing that so I can use multiples "prints" in the same line?

    Example:

    2456

    instead of
    2
    4
    5
    6

    Thank you

    Luis
    Use a String.Format to put all that you want to print on the line.

    ref: http://msdn.microsoft.com/en-us/libr...=vs.90%29.aspx
    http://techmantium.com/string-formatting-examples/

    Comment


      #3
      Hello Luis,

      Thank you for your post.

      Koganam is correct. Use the String.Format for this purpose.
      Cal H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by MJ123, Today, 04:06 PM
      2 responses
      15 views
      0 likes
      Last Post MJ123
      by MJ123
       
      Started by Skifree, Yesterday, 01:33 PM
      5 responses
      49 views
      0 likes
      Last Post Skifree
      by Skifree
       
      Started by dgutz15, 12-12-2022, 11:50 PM
      4 responses
      62 views
      0 likes
      Last Post drsclaud23  
      Started by xtremel, Today, 08:48 PM
      0 responses
      14 views
      0 likes
      Last Post xtremel
      by xtremel
       
      Started by SilverSurfer1, Today, 08:27 PM
      0 responses
      5 views
      0 likes
      Last Post SilverSurfer1  
      Working...
      X