Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7

Thread: escape sequence

  1. #1
    Join Date
    Jun 2002
    Posts
    42

    Grin 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. #2
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Try c:\\newfolder

  3. #3
    Join Date
    Jun 2002
    Posts
    42
    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);

  4. #4
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Thanks for reporting this! I've confirmed the behaviour and logged it for further inspection.
    --[[ Indigo Rose Software Developer ]]

  5. #5
    Join Date
    Jun 2002
    Posts
    42
    Thanks.

  6. #6
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943
    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

  7. #7
    Join Date
    May 2004
    Posts
    1
    Try using ListBox & ListBox.SetItemText.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts