StrTok & NSIS v2.02 problem
Hi,
I have an installation package which works ok in v2.0, but stopped working since I installed the v2.02 installation.
The problem is as follows:
I read a line from a file, and I extract a number into var $3.
After that I want to split the number into the part before the dot and after the dot.
This is the code I used and which worked:
in the variable $3 is always a number of the form "1234.567"
${StrTok} ${LENGTH} $3 "." "1" "1"
${StrTok} ${LENGTH_DIGITS} $3 "." "2" "1"
This used to return 1234 in the variable LENGTH and 567 in the LENGTH_DIGITS
Since I installed NSIS 2.02 this no longer works: I get 456 in the variable LENGTH
I checked the new docs, but frankly I don't understand the new counting convention for the tokenized string in StrTok anymore.