HISE Logo Forum
    • Categories
    • Register
    • Login

    Convert object to string

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 298 Views
    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.
    • T
      TNTHM
      last edited by

      I have an object with a property

      object1.property1
      

      I want to convert it to a string.

      How can we convert the data from an object into a string and store that string in a variable?

      I tried String() but this is not supported, and JSON.stringify() didn't work either.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @TNTHM
        last edited by

        @TNTHM

        If you want to convert the entire object to a string you can use trace(object1)

        Other than that you need to give a bit more context of what you want to do.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        T 1 Reply Last reply Reply Quote 1
        • T
          TNTHM @d.healey
          last edited by

          @d-healey perfect, thank you. Is that somewhere in the documentation? I didn’t see it.

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

          13

          Online

          1.7k

          Users

          11.8k

          Topics

          102.6k

          Posts