J John Sturt Active Member Licensed User Longtime User Mar 23, 2016 #1 Hello i found this today. B4X: 'This code produces a very nasty error code. Dim VariableA As Float VariableA = (VariableA + 1) mod 5 'The solution is Dim VariableA As Int 'Not really a bug just a very unfriendly error code. [\CODE]
Hello i found this today. B4X: 'This code produces a very nasty error code. Dim VariableA As Float VariableA = (VariableA + 1) mod 5 'The solution is Dim VariableA As Int 'Not really a bug just a very unfriendly error code. [\CODE]
narek adonts Well-Known Member Licensed User Longtime User Mar 23, 2016 #2 I got the same issue after updating B4i
Erel B4X founder Staff member Licensed User Longtime User Mar 23, 2016 #3 Will be fixed (the error message).
ilan Expert Licensed User Longtime User Aug 31, 2016 #4 i still get that error msg and cannot build my app. has this error already been fixed?
Erel B4X founder Staff member Licensed User Longtime User Sep 1, 2016 #5 MOD operator expects integers. In previous versions there was a strange error message. It should now show: Error description: Integer expected.
MOD operator expects integers. In previous versions there was a strange error message. It should now show: Error description: Integer expected.
ilan Expert Licensed User Longtime User Sep 1, 2016 #6 ok so the MOD function will only return an integer?
Erel B4X founder Staff member Licensed User Longtime User Sep 1, 2016 #7 B4i MOD operator only works with integers and returns an integer value.