Possible bug in code highlighting

Penko

Active Member
Licensed User
Longtime User
I was copying a function from another Activity. Some function got colored red as if they are invalid.

Actually, there was an error - I dublicated the function name but even after I removed the dublication, the code was still red.

I was had the a problem in:

B4X:
Sub setTitle()
   Activity.Title = Common.trans.GetText("About my app") ' here I have written Common.trans("About my app")
End Sub

But are these two problems a reason to paint the code red? It was displayed properly only after I compiled it.
 

Penko

Active Member
Licensed User
Longtime User
A 100% bug now. If you define an Activity as a function parameter, it's shown in red all the time. It doesn't get fixed after compilation.

Example - please define in a Code Module:

B4X:
Sub changeButton(act As Activity)

act.AddMenuItem("rarara", "ra")

act.Title = "Activity commanded by Module"

End Sub
 
Top