When i do this:
I get this on execution of the "For Each..." line:
Code:
Dim tbtnList As List
tbtnList.Initialize
tbtnList.AddAll(Array As ToggleButton (tbtn_EnOceanTopLeft,tbtn_EnOceanTopRight,tbtn_EnOceanBottomLeft,tbtn_EnOceanBottomRight))
For Each tbtn As ToggleButton In tbtnList
...
Next
I get this on execution of the "For Each..." line:
Log:
java.lang.ClassCastException: anywheresoftware.b4a.objects.CompoundButtonWrapper$ToggleButtonWrapper cannot be cast to android.widget.ToggleButton