Android Question Sub is not used

RB Smissaert

Well-Known Member
Licensed User
This will show if Sub is not used directly from code but is used via CallSub.
Not sure this is easy to fix, but it is a minor bug.

RBS
 

Erel

Administrator
Staff member
Licensed User
Moved to the questions forum.

The compiler does check for call sub calls:
For example there will be no warnings in this code:
B4X:
    CallSub(Me, "Test")

Sub Test
   
End Sub
However there are cases where it cannot know the target sub and in those cases there will be a warning. The solution is simple. Add an 'ignore comment on that line.
 

RB Smissaert

Well-Known Member
Licensed User
Moved to the questions forum.

The compiler does check for call sub calls:
For example there will be no warnings in this code:
B4X:
    CallSub(Me, "Test")

Sub Test
  
End Sub
However there are cases where it cannot know the target sub and in those cases there will be a warning. The solution is simple. Add an 'ignore comment on that line.
Ok, thanks, will add the ignore comment.

RBS
 
Top