Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Printing a new line?

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

    Printing a new line?

    I can't seem to get Print("\n") or Print("\r") working, is there any way to pass strings to the output window with new line or return characters?

    #2
    darckeen,

    You can just use Print(""). That will print a blank space and a new line.

    If you do Print("Test"), this will also move to the next line. I don't believe you need any special carriage return.
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      I'd like to be able to Print("hello\nworld");
      and have it display:

      hello
      world

      It supposedly works in c# and \t works in NT but \n and \r don't seem to.

      Comment


        #4
        That should do it -

        Code:
         
        Print("Hello" + "\r\nWorld");

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        181 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        334 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        258 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        358 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        187 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X