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

    Get Array Value can delete array values

    Scheduled Pinned Locked Moved
    Bug Reports
    1
    1
    83
    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.
    • Aidan_FireA
      Aidan_Fire
      last edited by

      Hyperpad version 1.2700.2
      iOS 14.3

      Using Get Array Value on an array where the index is the result of a behaviour at an index that doesn’t exist in the array will delete the value in the array at the index Get Array Value got one step previously.

      In other words, if you have an array with say 8 values in it, and you are cycling forward through them starting at 0 counting up, all is fine until you reach index 8 (which tries to get the 9th value). The result is <null> as expected, but then if you try to go back a step, the result is <null> again. The 8th value got deleted for no reason.

      Here’s an example project: https://bit.ly/2N6vTcD

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