Bug in Version 2.30?

Lloyd Olson

Member
Licensed User
Longtime User
Hello all,

I thought this might get someone's attention. I do believe I found a bug in the new version. AutoCapitalization combined with "Auto-Reservation" absolutely will not permit the entering of a line such as:

Dim in As Intent in.Initialize("", "")

Please try to do so in 2.30 instead of telling me that "In" is a reserved word in B4a.

If that is so, why does it even prevent us from entering the line above? It is not reserving "In", it is prohibiting "in".

I can not even write this line in a text editor and paste into the IDE without it automatically capitalizing the "i".

Please help.
 

NJDude

Expert
Licensed User
Longtime User
I know I have answered to you before, but, if you write that line as:
B4X:
Dim in As Intent in.Initialize("", "")
That will generate a Syntax error, however this:
B4X:
Dim in As Intent 
in.Initialize("", "")
works just fine, there's no issue using "In" even though is a reserved word (but it should be avoided).

I don't know if that answers your question.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please try to do so in 2.30 instead of telling me that "In" is a reserved word in B4a.
I'm afraid that I cannot answer without saying that starting from v2.30 In is a reserved word and as such it will be auto capitalized. However to avoid breaking existing code, you can also use it as a variable.

So it will be capitalized automatically but you will not get any syntax error. If you do get an error from a valid code then please post it.
 
Upvote 0
Top