HISE Logo Forum
    • Categories
    • Register
    • Login

    How do I actually get the return from splitCamelCase?

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 83 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by

      I am trying to get split a string using splitCamelCase,
      but I can't figure out how to return the split strings.

      Example:

      const split = String.splitCamelCase("TwoWords");
      Console.print(split[0]);
      

      In the docs it seems to return the the splits to an array:
      Screenshot 2024-12-15 at 6.19.19 PM.png

      But this just returns "Object":
      Screenshot 2024-12-15 at 6.17.43 PM.png

      You can listen to my orchestral mockups here:
      https://www.virtualvirgin.net/

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

        @VirtualVirgin

        const s = "TwoWords";
        const splitString = s.splitCamelCase();
        
        Console.print(splitString[0]);
        

        You see in the docs that the splitCamelCase function doesn't take any parameters.

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

        VirtualVirginV 1 Reply Last reply Reply Quote 0
        • VirtualVirginV
          VirtualVirgin @d.healey
          last edited by

          @d-healey Oh, there we go!
          Thanks, this is all pretty new to me (coding)!

          You can listen to my orchestral mockups here:
          https://www.virtualvirgin.net/

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

            @VirtualVirgin said in How do I actually get the return from splitCamelCase?:

            this is all pretty new to me

            You're doing great :)

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

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

            23

            Online

            1.8k

            Users

            12.0k

            Topics

            104.5k

            Posts