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
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
Comment