fxDreema

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

    Saving ObjectName in Variable

    Questions & Answers
    3
    4
    873
    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.
    • T
      teamfx001 @ezzakt last edited by

      @ezzakt please share your solved project plz.

      1 Reply Last reply Reply Quote 0
      • E
        ezzakt last edited by

        Hi,

        I have an indicator generating Rectangles with Variable names (date and time in name changes).
        I currently use the prefix check function as this is always the same to loop through the objects and find some specific ones.

        As some problems come up with this, I like to save an object name, after I found it with the prefix check to a Variable. Is this easily possible with fxdreema functions ?

        greetings

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

          It looks that the name of the object is the only thing that is missing if you use For each Object, this is because of the way I organized things in Condition -> Object on the chart đŸ™‚ The issue is that the name is a string value, while everything else is numering, and in some way it doesn't fit.

          For now you can use this function - LoadedObjectName(). Just write this somewhere after "For each Object" and it should give you the name. But note that in any time in future I may, and most probably will rename this function or remove it. This is function created by me and I often change things đŸ™‚

          1 Reply Last reply Reply Quote 0
          • E
            ezzakt last edited by

            Hi,

            late reply from me - issue is solved.
            Used a global Variable in your loop blocks to set the name.

            But good to know I was not too blind to find it đŸ™‚

            Andy

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

            Online Users

            G
            M
            C
            E
            L
            K
            E
            S
            E
            P
            G
            R
            N
            S
            E
            E
            M

            28
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors