I must be missing something completely obvious here.
In a library I try to check if a sub exists with:
in b4a I call Initialize (which the above code is part of) and pass "txt" as Eventname.
I then create a sub of:
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.
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.