Android Question Sub is not used

RB Smissaert

Well-Known Member
Licensed User
Longtime 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

B4X founder
Staff member
Licensed User
Longtime 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.
 
Upvote 0

RB Smissaert

Well-Known Member
Licensed User
Longtime 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
 
Upvote 0
Top