hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Globally Accessible Array: HOW?

    Scheduled Pinned Locked Moved
    Help and Support
    4
    14
    403
    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.
    • D
      Deeeds @Aidan_Fire
      last edited by

      @Aidan-Oxley I'll leave alone the fact that arrays aren't just a bunch of text... for the moment.

      And try to discover what you're saying in the rest.

      What on earth does the rest of what you're saying mean?

      Store an array in an attribute, got it.

      "or something as text"... you've lost me.

      How do I refer to that array as an attribute on something else?

      Does this "just work"?

      1 Reply Last reply Reply Quote 0
      • D
        Deeeds @Aidan_Fire
        last edited by

        @Aidan-Oxley I've tried this. Definitely not something in the "it just works" category. I'm not getting the array when getting the attribute value from the object that has the array set to an attribute.

        D KamdroidK iTap DevelopmentI 4 Replies Last reply Reply Quote 0
        • D
          Deeeds @Deeeds
          last edited by

          @Aidan-Oxley

          It's all about the delays.

          Wait before setting (for arrays to come into being)

          Wait longer before getting attribute value of array (so there's time for it to be set)

          I'm going to ponder ways to avoid this degree of complexity for non-programmers. I'm sure I'll come up with an elegant solution.

          Perhaps it's been solved before ;)

          Many times.

          1 Reply Last reply Reply Quote 0
          • KamdroidK
            Kamdroid @Deeeds
            last edited by

            @Deeeds I store an array in an object’s attribute, and it works fine,

            If you’re on iOS 11:
            Also be careful hard coding arrays in iOS 11, in a lot of fields, iOS will replace the regular exact same two quotes with one that symbolises the start and end quote, which causes the array to not work.
            But, copying and pasting exact quotes work fine, which is what I do.

            In HyperPad’s input box behaviour field they do not get replaced, so I type in there and copy and paste.

            D 1 Reply Last reply Reply Quote 0
            • D
              Deeeds @Kamdroid
              last edited by

              @Kamdroid We must be talking about different things.

              I'm entering numbers into an array, in the list on the right, in the "property inspector" of hyperPad.

              What are you talking about?

              1 Reply Last reply Reply Quote 0
              • KamdroidK
                Kamdroid @Deeeds
                last edited by

                @Deeeds said in Globally Accessible Array: HOW?:

                @Aidan-Oxley I've tried this. Definitely not something in the "it just works" category. I'm not getting the array when getting the attribute value from the object that has the array set to an attribute.

                Maybe I was thinking something else?

                1 Reply Last reply Reply Quote 0
                • iTap DevelopmentI
                  iTap Development @Deeeds
                  last edited by

                  @Deeeds, @Aidan-Oxley‘s way would work great.

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Deeeds @iTap Development
                    last edited by

                    @iTap-Development see questions above...

                    Aidan_FireA 2 Replies Last reply Reply Quote 0
                    • Aidan_FireA
                      Aidan_Fire @Deeeds
                      last edited by

                      @Deeeds An array is seriously just a bunch of text. For example, an array storing the values 1 and 2 looks like this: [“1”,”2”]. I’ll make a test project for ya.

                      D 1 Reply Last reply Reply Quote 0
                      • Aidan_FireA
                        Aidan_Fire @Deeeds
                        last edited by

                        @Deeeds Here you go: http://bit.ly/2yVvKfT

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          Deeeds @Aidan_Fire
                          last edited by

                          @Aidan-Oxley That's how an array looks to you. It's not quite that simple underneath. And it's not just text.

                          1 Reply Last reply Reply Quote 0
                          • D
                            Deeeds @Aidan_Fire
                            last edited by

                            @Aidan-Oxley Cheers. I'll have a puzzle around in a bit... still fighting with backups and corruption of my "elegant" little factory.

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