Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

escape sequence

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Try c:\\newfolder
    Regards,

    -Ron

    Music | Video | Pictures

    Comment


    • #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


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

        Comment


        • #5
          Thanks.

          Comment


          • #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


            • #7
              Try using ListBox & ListBox.SetItemText.

              Comment

              Working...
              X