Android Question What errorcode is this: Cannot convert LabelWrapper to PanelWrapper?

Tjitte Dijkstra

Member
Licensed User
Longtime User
Uncountable times everything was ok, but all of a sudden I encounter a problem.
The compiler is OK with the code, but in the run I get an error, to be precise: just Activity.LoadLayout generates this:
java.lang.RuntimeException: java.lang.RuntimeException: Cannot convert: class anywheresoftware.b4a.objects.LabelWrapper, to: class anywheresoftware.b4a.objects.PanelWrapper

What next?
 

DonManfred

Expert
Licensed User
Longtime User
Dont spill your time on this question. I made a mistake in the sub Globals section.
Probem solved!
For future references it would be better you post what was wrong and how you did solved it. Also edit the threadtitle and add [solved]
 
Upvote 0

Tjitte Dijkstra

Member
Licensed User
Longtime User
As the error message told us: ( Cannot convert: class anywheresoftware.b4a.objects.LabelWrapper, to: class anywheresoftware.b4a.objects.PanelWrapper) I confused the nature of one of the objects: if you define an object at designtime as a label, you can not describe it in your source code as a panel. That's all.
 
Upvote 0
Top