calculation error?

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
User avatar
cubitus54
Flowcode v5 User
Posts: 110
Joined: Wed Jun 19, 2013 7:18 am
Has thanked: 7 times
Been thanked: 32 times
Contact:

calculation error?

Post 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 2132 times
real.jpg
real.jpg (84.93 KiB) Viewed 2132 times
Thank you
Attachments
RTC_i2c+afficicheur18.fcfx
(21.91 KiB) Downloaded 200 times
Flowcode V6.1.2.0(11 05 2015)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: calculation error?

Post 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.

Post Reply