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. Bug Reports
  3. Bug: Arrays and dictionaries in set input fields

Bug: Arrays and dictionaries in set input fields

Scheduled Pinned Locked Moved Bug Reports
3 Posts 2 Posters 596 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.
  • Jack de WildeJ Offline
    Jack de WildeJ Offline
    Jack de Wilde
    wrote on last edited by
    #1

    Using an array or dictionary in a set input field doesn't work properly. Here's an example:

    0_1512528942819_IMG_0615.PNG

    The array is:

    0: This is the value at index zero
    1: This is the value at index one

    The text input gives this:

    ( "<BehaviourInputField: 0x174a56c50> = { \n\tControlled By = self \n\tValue Key = (null) \n\tValue: This is the value at index zero \n}", "<BehaviourInputField: 0x17444add0> = { \n\tControlled By = self \n\tValue Key = (null) \n\tValue: This is the value at index one \n}" )

    Dictionaries do the same thing:

    { "my first key" = "<BehaviourInputField: 0x170e56410> = { \n\tControlled By = self \n\tValue Key = (null) \n\tValue: my first value \n}"; "my second key" = "<BehaviourInputField: 0x170c50440> = { \n\tControlled By = self \n\tValue Key = (null) \n\tValue: my second value \n}"; }

    Edit: moved to bug report section, originally posted to help and support.

    1 Reply Last reply
    1
    • T Offline
      T Offline
      Thecheater887
      wrote on last edited by Thecheater887
      #2

      This isn't a bug.

      If you print an array in, say, C#, this is what you will see; a summary of the printed object.

      Now, if you print Array[0] + Array[1], you will see This is the value at index 0.This is the value at index 1. This is because it now knows to pull and print the contained strings, rather than print the array itself.

      Dictionaries should work the same way.

      Jack de WildeJ 1 Reply Last reply
      0
      • T Thecheater887

        This isn't a bug.

        If you print an array in, say, C#, this is what you will see; a summary of the printed object.

        Now, if you print Array[0] + Array[1], you will see This is the value at index 0.This is the value at index 1. This is because it now knows to pull and print the contained strings, rather than print the array itself.

        Dictionaries should work the same way.

        Jack de WildeJ Offline
        Jack de WildeJ Offline
        Jack de Wilde
        wrote on last edited by
        #3

        @Thecheater887 no, arrays and dictionaries are supposed to be returned in json, so it should return:
        ["This is the value at index zero","This is the value at index one"]

        It works fine if I put the array output directly in the text input.

        If this wasn't a bug it'd be a huge inconsistency since it returns in json format all other ways except in a set input field.

        1 Reply Last reply
        1

        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