iOS Question Module name error in v2.5

jai

Active Member
Licensed User
Longtime User
Just upgraded to B4i ver 2.5. Upon loading a working app under the earlier version I get an error-

Variable name cannot be the same as a module name.

It does not like the start of the sub-
B4X:
Private Sub Application_OpenUrl (Url As String, Data As Object) As Boolean
   If Url.StartsWith("file://") Then
       ---
   End If
End Sub

This was never a problem before. What may be causing it?
 

jai

Active Member
Licensed User
Longtime User
That was it! I had a module named Data. The problem went away after renaming it.

Thanks Erel for your prompt help.
 
Upvote 0
Top