iOS Question incorrect parsing?

sorex

Expert
Licensed User
Longtime User
for some reason the parser is freaking out on this line that works fine in B4A...

B4X:
   If x Mod Sqrt(ls)=Sqrt(ls)-1 Then t=t & CRLF

it expect that the mod value is of an int type.

the square root of those values are valid INTs tho so it should just compile as is.

currently avoided by bit.parseInt-ing the sqr(ls) value.
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…