J jai Active Member Licensed User Longtime User Feb 15, 2016 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2016 #2 Is there a module named Url or Data in your project? This check was added in v2.3. The name conflict caused the debugger to crash in some cases. Upvote 0
Is there a module named Url or Data in your project? This check was added in v2.3. The name conflict caused the debugger to crash in some cases.
J jai Active Member Licensed User Longtime User Feb 16, 2016 #3 That was it! I had a module named Data. The problem went away after renaming it. Thanks Erel for your prompt help. Upvote 0
That was it! I had a module named Data. The problem went away after renaming it. Thanks Erel for your prompt help.