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. Box Container Pointing at Get Array Value @ Index # Updates?

Box Container Pointing at Get Array Value @ Index # Updates?

Scheduled Pinned Locked Moved Help and Support
3 Posts 2 Posters 367 Views 1 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

    If a Box Container's storage is the output of a Get Array Value at Index Behaviour, and somewhere else, on an object somewhere else, the value stored at that index in that array is changed, does the Box Container update itself with this new value?

    1 Reply Last reply
    0
    • HamedH Offline
      HamedH Offline
      Hamed
      Admin
      wrote on last edited by
      #2

      In programming terms, the box container will point at the get array value. The get array needs to be triggered again to update the box container.

      D 1 Reply Last reply
      0
      • HamedH Hamed

        In programming terms, the box container will point at the get array value. The get array needs to be triggered again to update the box container.

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

        @Hamed Got it. Thank you!

        So the Get Array Value at Index Behaviour is creating a locally stored variable/pointer of whatever its lookup (get) from the array returns, for the use of local Box Containers, Value Behaviours and any other localised behaviours wanting to use it. I think.

        For anyone coming along in the future, this seems to be what's happening, in pseudo code (please correct me if I'm wrong, @Hamed), wherein * indicates a pointer.

        *myLookUplocalStorage = myArray[atIndex]
        myBoxContainer = *myLookUPlocalStorage
        
        myArray[atIndex] += 1
        
        // myArray[atIndex] is now 1 bigger , but neither localStorage nor myBoxContainer know anything about this update
        

        myBoxContainer stores a pointer to the localised lookup (get), so whatever changes at that address is instantly reflected in myBoxContainer

        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