fxDreema

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

    c:: prepended to custom code variables

    Questions & Answers
    2
    2
    1177
    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.
    • N
      nickmccomb last edited by

      hi guys, when i create a variable in custom code it gets prepended with c::

      int count = 0;
      when mq4 is built in code it will be:
      int c::count = 0;

      but count isn't meant to be a global, it's meant to be a local variable, so it gives me errors because c::count isn't defined globally

      anyone know how to stop the build from adding c:: to local variables in custom code?

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

        So, I found a problem that happens only to some variable names, such as "size" or I guess "count". Yes, you have them as local variables and they should not be prepended with c:: or v::, because there is no Constant or Variable with such name. What I found is a bug in the function that does this prepend job and it happens only with certain names... it's a long story. I think I fixed this particular problem anyway.

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

        Online Users

        S
        G

        9
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors