开发者

How do I concatenate 2 strings in NSIS

How do I c开发者_开发知识库oncatenate 2 strings in NSIS?


StrCpy $1 "one string"

StrCpy $2 " second string"

MessageBox MB_OK "$1$2"


If you want to concatenate using the same variable you can do something like this:

StrCpy $1 "ABC"

StrCpy $1 "$1123"

DetailPrint $1

output is "ABC123"


StrCpy $1 "Hello"

StrCpy $2 "World"

StrCpy $3 "$1 $2"

DetailPrint $3


If you're looking to split up one long string over multiple lines, just use the \ inside the quotes:

MessageBox MB_OK "Alright, Mr. User you are done here, so you can go ahead and \ 
stop reading this message box about now."
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜