Bug? V 780 - #End Region no more automatically added

LucaMs

Expert
Licensed User
Longtime User
I'm editing a project developed with B4A 7.30 and the problem is that #End Region is not automatically added after pressing enter (outside of routines, because inside them, if I remember well, it was already so).

bug.gif
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
There was an important fix in v7.8 related to the autocomplete of #If / #End If blocks. In previous versions there were many cases where it added an extra #End If which caused the native code to get broken because of case changes.

As part of this fix, the autocomplete implementation of such blocks changed to only complete when it is guaranteed not to add extra closing clauses. In the case of #Region it currently never autocompletes.

You can see in v7.30 that whenever you press enter on a #Region line it adds another #End Region line. Even if there is already one.
 
Top