fxDreema

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

    example: Save variables into file and read them back [advanced]

    Tutorials by Users
    11
    27
    10156
    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.
    • E
      edro77 last edited by

      Thanks for answering I want to save a bool variable
      When I compile I get an error and a warning
      Could you help me by seeing what I'm doing wrong, I would really appreciate it.

      https://fxdreema.com/shared/D0D5rXhgb

      error.jpg

      1 Reply Last reply Reply Quote 0
      • S
        s00071609 @jstap last edited by

        @jstap Hi you suggested to create type bool. Did you mean create variable bool in fxdreema? and then save it as string in file? This gives - error cannot implicitly convert type 'string' to 'bool'. Could you please clarify - currently this is being used:
        xyz= strArr[0]; , what would be the right way to save a bool?

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

          You are confusing things,
          bool = true/false
          string = text

          Learn fxDreema Without the Wait!

          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

          Don’t miss out

          Click here➡️ https://mybook.to/fxDreema to get your copy today!

          Enjoy! 😊

          S 1 Reply Last reply Reply Quote 0
          • S
            s00071609 @jstap last edited by

            @jstap I have some bool values in fxdreema that i want to save. Instead of strArr[0] that stores string, what could we use to store bool?

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

              bool as a 0 or 1 so int can be used

              Learn fxDreema Without the Wait!

              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

              Don’t miss out

              Click here➡️ https://mybook.to/fxDreema to get your copy today!

              Enjoy! 😊

              S 1 Reply Last reply Reply Quote 0
              • S
                s00071609 @jstap last edited by

                @jstap Great thank you. (int)strArr[0]; seems to work.
                No compile error anymore

                jstap 1 Reply Last reply Reply Quote 0
                • jstap
                  jstap @s00071609 last edited by

                  @s00071609 👍

                  Learn fxDreema Without the Wait!

                  My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                  The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                  Don’t miss out

                  Click here➡️ https://mybook.to/fxDreema to get your copy today!

                  Enjoy! 😊

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

                  Online Users

                  M
                  H
                  C
                  I
                  I
                  E
                  E
                  O
                  O
                  D
                  F

                  24
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors