Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Globally Accessible Array: HOW?

Globally Accessible Array: HOW?

Scheduled Pinned Locked Moved Help and Support
14 Posts 4 Posters 1.2k Views 2 Watching
  • 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 Offline
    D Offline
    Deeeds
    wrote on last edited by
    #1

    The naming space seems globally aware, won't let me name something the same thing, regardless of where it is.

    So is it possible to access an Array inside another object from a third party?

    Aidan_FireA 1 Reply Last reply
    0
    • D Deeeds

      The naming space seems globally aware, won't let me name something the same thing, regardless of where it is.

      So is it possible to access an Array inside another object from a third party?

      Aidan_FireA Offline
      Aidan_FireA Offline
      Aidan_Fire
      wrote on last edited by Aidan_Fire
      #2

      @Deeeds Arrays are a bunch of text, as you may know. If you want a globally accessible array, store the array in an attribute on an object or something as text, then any time you modify the array or get information from it, always refer to that attribute.

      D 2 Replies Last reply
      1
      • Aidan_FireA Aidan_Fire

        @Deeeds Arrays are a bunch of text, as you may know. If you want a globally accessible array, store the array in an attribute on an object or something as text, then any time you modify the array or get information from it, always refer to that attribute.

        D Offline
        D Offline
        Deeeds
        wrote on last edited by
        #3

        @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
        0
        • Aidan_FireA Aidan_Fire

          @Deeeds Arrays are a bunch of text, as you may know. If you want a globally accessible array, store the array in an attribute on an object or something as text, then any time you modify the array or get information from it, always refer to that attribute.

          D Offline
          D Offline
          Deeeds
          wrote on last edited by
          #4

          @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
          0
          • D Deeeds

            @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 Offline
            D Offline
            Deeeds
            wrote on last edited by
            #5

            @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
            0
            • D Deeeds

              @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.

              KamdroidK Offline
              KamdroidK Offline
              Kamdroid
              wrote on last edited by
              #6

              @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
              0
              • KamdroidK Kamdroid

                @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 Offline
                D Offline
                Deeeds
                wrote on last edited by
                #7

                @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
                0
                • D Deeeds

                  @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.

                  KamdroidK Offline
                  KamdroidK Offline
                  Kamdroid
                  wrote on last edited by
                  #8

                  @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
                  0
                  • D Deeeds

                    @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.

                    iTap DevelopmentI Offline
                    iTap DevelopmentI Offline
                    iTap Development
                    wrote on last edited by
                    #9

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

                    D 1 Reply Last reply
                    0
                    • iTap DevelopmentI iTap Development

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

                      D Offline
                      D Offline
                      Deeeds
                      wrote on last edited by
                      #10

                      @iTap-Development see questions above...

                      Aidan_FireA 2 Replies Last reply
                      0
                      • D Deeeds

                        @iTap-Development see questions above...

                        Aidan_FireA Offline
                        Aidan_FireA Offline
                        Aidan_Fire
                        wrote on last edited by
                        #11

                        @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
                        0
                        • D Deeeds

                          @iTap-Development see questions above...

                          Aidan_FireA Offline
                          Aidan_FireA Offline
                          Aidan_Fire
                          wrote on last edited by
                          #12

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

                          D 1 Reply Last reply
                          0
                          • Aidan_FireA Aidan_Fire

                            @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 Offline
                            D Offline
                            Deeeds
                            wrote on last edited by
                            #13

                            @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
                            0
                            • Aidan_FireA Aidan_Fire

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

                              D Offline
                              D Offline
                              Deeeds
                              wrote on last edited by
                              #14

                              @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
                              0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Search