When I use the Month(Now) function in Basic. I can replicate in a new project with this code
Function Main()
b = Month(Now)
console.log(b)
End Function
it ends up compiled into this…
…with square brackets.
The quick fix is b = (Month(Now))
To specify it is not the “Now” that is the issue but the Month() function
I can see what is happening, but it probably should not be fixed.
It’s quite possible a bunch of existing users are using Month
as an array. If we updated the translator to always treat Month
as a function, it could break their apps.
We’ll have to treat it as a quirk - hopefully, others do not have this happen to them.