Archive: simple StrCpy problem


simple StrCpy problem
Hi,
i have a little problem with the StrCpy function. how can i handle it, if a want to use $$$ in a string, like

StrCpy $0 "$$$StringText$$$"

in this form, the function interpretes $String as a variable/constant, but i want to copy the whole text "$$$StringText$$$" in $0.

i tried it with "/$/$/$/StringText$$$", but i get
5 warnings:
unknown variable/constant "/$/$/StringText$$$" detected, ignoring (D:\@Local\testinst.nsi:76)
unknown variable/constant "/$/StringText$$$" detected, ignoring (D:\@Local\testinst.nsi:76)
unknown variable/constant "/StringText$$$" detected, ignoring (D:\@Local\testinst.nsi:76)
unknown variable/constant "" detected, ignoring (D:\@Local\testinst.nsi:76)

for example in C++ if i want to write the sign %, i use %%.
Can someone help me? :)
thank you for help
shavo


One way to do this is to use another variable to hold the "$$$" part of the string.

StrCpy $1 "$$$$$$"
StrCpy $0 "$1StringText$1"

; $0 = "$$$StringText$$$"

it works, thx!