HISE Logo Forum
    • Categories
    • Register
    • Login

    Unexpected EOF in string constant

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 58 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.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      Hello to all,

      unfortunately this does not work under Windows:

      const separator = “\”;
      

      I get the following error message:

      Interface:! Line 95, column 19: 11:1: error: Unexpected EOF in string constant 
      

      Does anyone have an idea how I can assign this character “\” to a string variable under Windows?

      Thank you very much
      Oli

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @Oli Ullmann
        last edited by ustk

        @Oli-Ullmann try double backslash as escape character const separator = "\\";

        Can't help pressing F5 in the forum...

        Oli UllmannO 1 Reply Last reply Reply Quote 1
        • Oli UllmannO
          Oli Ullmann @ustk
          last edited by

          @ustk
          Yes, that seems to work. Thank you very much! :-)

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

          50

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts