Archive: "\r" is getting processed as carriage return.?


"\r" is getting processed as carriage return.?
StrCpy $R0 "$R0\n\n Use existing Microsoft SQL Server"
Messagebox mb_OK $SQLPATH
StrCpy $R0 "$R0\n SQL Server path: $SQLPATH"

If there is a "\r" in the string:

The Messagebox call shows the string as it should "\rabcdef"

The 2nd Strcpy (concatenation), processes the "\r" as a line break even though there is no "$" in front of it.

Ideas to get around this?


Which string? Where does \r go? Please post the exact piece of code that causes the problem.


Sorry, I meant if there is an "\r" sequence in the $SQLPATH variable. It prints out fine, alone, in the MessageBox, but when it is concatenated it creates a carriage return.

I changed page from an InstallOptions to Custom nsDialogs page and now it seems to be working as intended.

Did the old InstallOptions pages use "\n" instead of "$\n"?


\r and \n are carriage returns and new lines in InstallOptions.

Stu