Version 2.70, Warning #25

aalekizoglou

Member
Licensed User
Longtime User
In the following code I get Sub 'OnSub' not found (warning #25).
OnSub is Dim OnSub as string

What am I doing wrong?

B4X:
If SubExists(MyModule, OnSub) Then 
CallSub2(MyModule, OnSub, Me)
End If
 

aalekizoglou

Member
Licensed User
Longtime User
This is a bug. It should have ignored this line.

You will need to add an 'ignore comment:
B4X:
CallSub2(MyModule, OnSub, Me) 'ignore


If you're going to fix that I shouldn't bother adding the 'ignore comment.
 
Top