Archive: Convert String into another format


Convert String into another format
Hello,

first i'll say, that NSIS is an really good software - mostly easy to use ("mostly" are the reason, why i'm posting here :-) ) and good documented.

Ok, my problem now: i write since some days an installation program for our program and found for all problems during this time an solution in this forum, wiki or via google but not for this problem:

I have an string variable with following values:
test1\r\ntest2

How can i convert this values in the following format:
"test1" "test2"

The catridge return must be converted into an space and quotes must be added before and after every value.

With kind regards,
prodigy7


Use StrReplace function on the NSIS Wiki to replace $\r$\n with " " and then do a StrCpy $Var '"$Var"'

-Stu


Hi,

Thank you very much. That is what i'm looking for. Have a nice day!

p7