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. How to properly display the text from an array in a label

How to properly display the text from an array in a label

Scheduled Pinned Locked Moved Help and Support
4 Posts 2 Posters 55 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.
  • MrAeon1111M Offline
    MrAeon1111M Offline
    MrAeon1111
    wrote last edited by
    #1

    Hello,
    I would like to display the text of an array in a label without the parentheses and the “” just the text.
    From
    [Apple””Cat””Bear]
    To
    Apple Cat Bear

    Is there an easy way to do that?

    Thanks.

    1 Reply Last reply
    0
    • RobinsonXR Offline
      RobinsonXR Offline
      RobinsonX
      wrote last edited by
      #2

      You can use a Text Operation behavior and use the Text with Format mode. In the input text, you can enter a format. Every instance of %s is replaced with an element - so you can have your input text be %s %s %s and those would automatically be populated with one element each, showing the first 3 elements of the array.

      IMG_9387.jpeg

      1 Reply Last reply
      0
      • RobinsonXR Offline
        RobinsonXR Offline
        RobinsonX
        wrote last edited by
        #3

        However, if your array is going to have variable amount of elements, then you will have to use a Loop to iterate through the array. First, you have a Value behavior and before looping, you make it empty so it starts with nothing in the value. Then in the loop, you would combine the value with the current element of the iteration. After the loop, the value behavior will have all the elements, separated by spaces.

        1 Reply Last reply
        0
        • RobinsonXR Offline
          RobinsonXR Offline
          RobinsonX
          wrote last edited by
          #4

          IMG_9388.png
          IMG_9389.png

          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