fxDreema

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

    reading Edit Field value

    Questions & Answers
    2
    6
    1444
    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.

      I haven't found it in the 'manual'.
      When I create an edit field object I don't know how to get the value of it when I the user enters a value. At that moment I wan't to check the value and set it when it is out of bounds.

      Can you help me!?

      thanks in advance

      PS: I think there should be a block within the 'Loop with objects' section like 'Check label'. Also I can't see a object attribute like 'label' when using the condition block.

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

        Because it is the only text attribute and I needed to separate it from the numric ones somehow. It is also used in different context in objects, sometimes it is the description, sometimes it is the main text... depends on the object type.

        https://fxdreema.com/shared/Z1BNy3KCd

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

          Okay and how do I get the value of the edit field into a variable or compare it to another value?

          Hope I haven't overlooked something!?

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

            https://fxdreema.com/shared/D3CRNbCC

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

              Ah. Okay. I understand. Its the object description.

              Thanks for the fast feedback. I think now I have everything to start with my EA and start a new subscription. 🙂

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

                Yes, the MQL4 function to get this value is actually called ObjectDescription(). Now that MQL4 is more like MQL5 there is another way to get this information and it is not "description" anymore, but ObjectDescription() still works.

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

                Online Users

                K
                S
                M
                V

                12
                Online

                146.8k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors