Hi support!
Need to know why my var Taux does not assign value N. It assigned value 2 instead.
I'm sure it's a simple explanation.
https://u.pcloud.link/publink/show?code ... ibJy0xEbH7
Thank you again for your help!
Force Var assignement
Moderators: Dorian (MJT support), JRL
-
- Pro Scripter
- Posts: 90
- Joined: Fri Jan 31, 2020 10:52 am
Re: Force Var assignement
Found my answer.
The var N is always seen as a boolean I guess that is why MS will set the value as 2.
I changed the value for T and the var result was T.
That is my finding.
The var N is always seen as a boolean I guess that is why MS will set the value as 2.
I changed the value for T and the var result was T.
That is my finding.
Re: Force Var assignement
The letter "N" is always seen as the letter "N" unless your code sets it to some other value. It is not a boolean value. Apparently, somewhere in your code you have set "N" equal to 2 so when you set "Taux" to "N", the value of "Taux" becomes 2. There is no other explanation.
I never use single characters as variables. Too much confusion ensues when I do.
I never use single characters as variables. Too much confusion ensues when I do.
-
- Pro Scripter
- Posts: 90
- Joined: Fri Jan 31, 2020 10:52 am
Re: Force Var assignement
Thank you for your reply. I understand the assignation of a var. I review the code and coul'nt find an assignation to 2. What I did is change the var name and value in all the code and it work as it suppose.
Again thank you for your comment, it is appreciated.
Again thank you for your comment, it is appreciated.