Bug? In B4J a B4XSwitch seems to require a valuechanged event

MrKim

Well-Known Member
Licensed User
Longtime User
I have several B4XSwitches on a form. One, I don't happen to need an event so there is none. When changed it throws this error:

B4X:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Exception: Sub clockoutonlysw_valuechanged was not found.
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:496)
    at anywheresoftware.b4a.keywords.Common.access$0(Common.java:467)
    at anywheresoftware.b4a.keywords.Common$CallSubDelayedHelper.run(Common.java:541)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.RuntimeException: java.lang.Exception: Sub clockoutonlysw_valuechanged was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:120)
    at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:487)
    ... 9 more
Caused by: java.lang.Exception: Sub clockoutonlysw_valuechanged was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:98)
    ... 11 more

It doesn't seem to affect the program in any way.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…