fxDreema

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

    How to verifiable data type of edit field's variable?

    Questions & Answers
    2
    3
    1451
    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.
    • C
      casper last edited by

      Hi,

      I'm using draw edit field with double variable on my ea. When user modified field area how can I check this valid number or data type.
      So, see like this:

      Edit Field variable is = double varLot: 2.10
      User write Edit field area = abcd or 5,10 (using comma not point)

      How can I check edit field variable double or not? I tried MathIsValidNumber() function, but I can't do it.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by miro1360

        try this:
        https://fxdreema.com/shared/rW0qyPdQb

        0_1547137436626_d3a80331-8ab0-4c89-a2b2-519d09d83fab-image.png

        this example returns 0 ... but you can edit it in many ways, ... lets say user enters wrong value, the previous value can be returned, and so on ...

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • C
          casper last edited by

          Hi Miro,

          I tried to make this for a week. You are great coder.

          Thank you very very very much...

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

          Online Users

          M
          R
          F

          22
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors