fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Print Message

    Questions & Answers
    2
    4
    1371
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hilavoku last edited by

      Hiho,

      hope i didn't overlooked it but how can i use the PrintMessage block to print a variable ?

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Stupid block, you can't, but you can try with "Custom MQL4 code" (the very last block of all) in these ways:

        Print("message to print");
        Print("My variable is "+variableName);
        Print("My variable is ",variableName);
        

        There is a slight difference when you separate members with "+" and ",". Using "+" makes numbers to be printed with more digits after the point, while "," makes them to look short and friendly.

        By the way I lied. "Print message" can be used as well with a trick - you have to add "+ or ", at the beginning and +" or ," at the end 🙂

        1 Reply Last reply Reply Quote 0
        • H
          hilavoku last edited by

          Thx again for the replay. I could have come to the trick solution by myself. 😄

          thank you till my next question 🙂

          PS: have you thought about the output option of the manually written blocks? 😏

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            At the moment I work for a new thing that will probably help many people with debugging the project, and Library Studio is with lower priority. I can't give you a promise when I will take care of it, also because this thing is still not really clear in my mind 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            G
            E
            T
            M

            12
            Online

            146.8k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors