Hi, guys --
I obviously something do not understand.
To demonstrate my troubles I created following "library"
B4A:
Why subExists returns "No", unlike inside main.java
I obviously something do not understand.
To demonstrate my troubles I created following "library"
B4X:
package b4a.SM.Test;
import anywheresoftware.b4a.BA;
@BA.Version (1.00f)
@BA.ShortName ("smTest")
@BA.ActivityObject
public class smTest
{
public void Initialize (BA ba, String eventName)
{
if (ba.subExists (eventName))
{ BA.LogInfo ("Yes"); }
else
{
BA.LogInfo ("No");
}
}
}
B4A:
B4X:
Sub Process_Globals
End Sub
Sub Globals
Private smTest As smTest
End Sub
Sub Activity_Create (FirstTime As Boolean)
smTest.Initialize ("_eventname")
End Sub
Sub eventName
Log ("Sub eventName")
End Sub
Why subExists returns "No", unlike inside main.java
B4X:
public static String _eventname() throws Exception{
//BA.debugLineNum = 31;BA.debugLine="Sub eventName";
//BA.debugLineNum = 32;BA.debugLine="Log (\"Sub eventName\")";
anywheresoftware.b4a.keywords.Common.Log("Sub eventName");
//BA.debugLineNum = 33;BA.debugLine="End Sub";
return "";
}