escape sequence

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • CWRIGHT
    Indigo Rose Customer
    • Jun 2002
    • 42

    escape sequence

    I am sure this is a simple one -- is there any way to avoid escape sequences (particularly \n) in a text string when using Paragraph.SetText ?

    I am using the Dialog.FolderBrowse action to browse for a folder, and then write the chosen folder and path in a paragraph. For example:

    storage_path = Dialog.FolderBrowse("Please select a folder:", _ProgramFilesFolder);
    if (storage_path ~= "CANCEL") then
    Paragraph.SetText("Paragraph2", storage_path);
    end

    The problem is, if I select a folder starting with the letter n (eg c:\newfolder), this and its preceeding backslash are interpretted as a \n newline, and the paragraph text is set as:

    c:
    ewfolder

    Any help appreciated.
    Thanks, CW
  • rhosk
    Indigo Rose Customer
    • Aug 2003
    • 1698

    #2
    Try c:\\newfolder
    Regards,

    -Ron

    Music | Video | Pictures

    Comment

    • CWRIGHT
      Indigo Rose Customer
      • Jun 2002
      • 42

      #3
      Thanks Ron, but unfortuantely that doesn't work. :(

      I am using the Dialog.FolderBrowse function which automatically sets the variable for me. The variable is displayed correctly in a message box, but not when used with Paragraph.SetText.

      Even the following doesn't work:

      testvar = "C:\\newfolder";
      Paragraph.SetText("Paragraph1", testvar);

      Comment

      • Lorne
        Indigo Rose Staff Member
        • Feb 2001
        • 2729

        #4
        Thanks for reporting this! I've confirmed the behaviour and logged it for further inspection.
        --[[ Indigo Rose Software Developer ]]

        Comment

        • CWRIGHT
          Indigo Rose Customer
          • Jun 2002
          • 42

          #5
          Thanks.

          Comment

          • Mark
            Indigo Rose Staff Member
            • Jun 2000
            • 1945

            #6
            Hi,

            This has been confirmed as a bug and will be fixed for the next version.

            Thak you for the post.
            MSI Factory The Next Generation Intelligent Setup Builder

            Comment

            • nmax
              Forum Member
              • May 2004
              • 1

              #7
              Try using ListBox & ListBox.SetItemText.

              Comment

              Working...
              X