Trying to run this code gives me an error:
The signature of the sub I'm calling:
The error:
java.lang.RuntimeException: java.lang.ClassCastException: anywheresoftware.b4a.objects.PanelWrapper cannot be cast to anywheresoftware.b4a.BA
Yikes. What am I doing wrong?
B4X:
Dim SCR As cSCRAbout
Dim pan As Panel
pan.Initialize("pan")
CallSub2(SCR, "Initialize", pan)
The signature of the sub I'm calling:
B4X:
Public Sub Initialize(HostPanel As Panel)
The error:
java.lang.RuntimeException: java.lang.ClassCastException: anywheresoftware.b4a.objects.PanelWrapper cannot be cast to anywheresoftware.b4a.BA
Yikes. What am I doing wrong?