Java Question Sub not recognized

barx

Well-Known Member
Licensed User
Longtime User
I must be missing something completely obvious here.

In a library I try to check if a sub exists with:
B4X:
   mBA = ba;
   mView = view;
   mEventname = Eventname;
      
   BA.Log("AirView Initializer");
   BA.Log("Event Trigger - " + mEventname + "_Hover");
   if (mBA.subExists(mEventname + "_Hover")) {

in b4a I call Initialize (which the above code is part of) and pass "txt" as Eventname.

I then create a sub of:

B4X:
Sub txt_Hover

Yet the code within the java If block never runs. If I comment out the IF, the code runs.

Any ideas what I'm missing.
 

barx

Well-Known Member
Licensed User
Longtime User
Silly me.

Thank you!
 
Top