Archive: StrCmp "" is different of StrCmp " "


StrCmp "" is different of StrCmp " "
Remember this.
After many (...) years using Nsis,
I Almost suicide my own sef by my self (leaking brain)
because of this. :cry:
StrCmp "" is different of StrCmp " "


"" is nothing. " " is a space.

-Stu


Yes. The point is:
When using installoptions, you (I) write:
WriteIniStr x.ini "Field 1" State ""
But installoptions writes -> State=" "
If ReadIniStr reads a space, why don't read '" "' ?
(don't answer this. It's just a cry)
I'm writing this just as one thing to remember.


So InstallOptions supposedly writes a space " " but when you read from it with ReadINIStr, it's ""?
Perhaps InstallOptions puts a null-escape (\0) character there which usually looks like whitespace in a text editor (in Notepad2 however it comes out as NUL).

-Stu