fxDreema

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

    syntax error - please help - thx

    Questions & Answers
    2
    3
    555
    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.
    • B
      bates last edited by

      Hi,

      Can anyone spot what I'm doing wrong here. I get an error that says cannot convert string to bool when I compile the code in fxdreema. Here's the code.

      objName="stopRun"+(string)inc;
      strStopRun=arrStopRun[inc];

      if(strStopRun="1") {
      setText=CharToString((uchar)checkYes);
      setColor=colorUp; font="Wingdings";
      } else {font="Arial";}

      roar 1 Reply Last reply Reply Quote 0
      • roar
        roar @bates last edited by

        @bates
        When comparing, use double equal:
        if(strStopRun=="1")

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        1 Reply Last reply Reply Quote 0
        • B
          bates last edited by

          @roar thank you very much 🙂

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

          Online Users

          V
          F
          S
          S
          Q
          P
          J
          H
          Q
          R
          E
          W
          Q
          K
          C
          M
          G
          E
          B

          30
          Online

          146.9k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors