Announcement

Collapse
No announcement yet.

writeln splitting information on another line

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

  • writeln splitting information on another line

    Hello,

    I using the following line of code:
    f.writeln("one="+open(0).toFixed(4) +",",high(0).toFixed(4)+","+low(0).toFixed(4)+","+ close(0).toFixed(4));


    It displays the following:
    one=1.5600,
    1.5750,1.5100,1.5100

    Why is not on the same line?


    -Mike

  • #2
    try replacing
    PHP Code:
    f.writeln("one="+open(0).toFixed(4) +",",high(0).toFixed(4)+","+low(0).toFixed(4)+","+close(0).toFixed(4)); 
    with:
    PHP Code:
    f.writeln("one="+open(0).toFixed(4) +","+high(0).toFixed(4)+","+low(0).toFixed(4)+","+close(0).toFixed(4)); 
    Wayne

    Comment


    • #3
      What is the difference between my line and yours?

      Comment


      • #4
        syntax! .

        Comment


        • #5
          I don't see any difference in syntax!

          Comment


          • #6
            +",",
            vs
            +","+
            Last edited by waynecd; 05-13-2013, 05:28 PM.

            Comment

            Working...
            X