Page 1 of 1

calculation error?

Posted: Sun Aug 09, 2015 7:04 pm
by cubitus54
Hi,

Simulation the line:

Code: Select all

.CHR_tmp = Mid $ (mois, (.tmp * 3), 3)
.tmp * 3 = 24
Constant

Code: Select all

mois = "JanFevMarAvrMaiJunJuiAouSepOctNovDec"
The simulation gives ""
reality gives "Sep"
simul.gif
simul.gif (28.66 KiB) Viewed 2513 times
real.jpg
real.jpg (84.93 KiB) Viewed 2513 times
Thank you

Re: calculation error?

Posted: Mon Aug 10, 2015 11:29 am
by Benj
Hello,

Many thanks for letting us know. Yes it does look like a bug. I think if you changed the constant to a string variable then it would work in simulation and download. However you have probably got a better solution using a constant so I have added this to the bugs list for our engineer to try and find a solution.