View Single Post
Old 8th March 2011, 12:24   #43
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
I thought a problem must be correct: Switch... Case... EndSwitch is used to detect the numeric value of the variable. But once I use it, I found in fact it can't be used to compare numbers. Such as I have defined a hexadecimal notification code 0x0300, if it is used to compile with a decimal number returned by NSIS, of course, they undoubtedly are not equal. Actually, I found that Switch and Case are only used in mathematical expression but not a string. So I modify the header, use the macro "_=" to replace with the original "_==". But I still advice official developtors to modify this.

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote