I have a code module (b4a) in which all the routines require variables of type B4XView as parameters.
This code module works well in b4a and b4j projects. I compiled the module to a b4a library.
Then I ran the same project (b4a) which used the code module, replacing the module with the library and I get this error at compilation time:
src\b4a\example\main.java:432: error: incompatible types: Button cannot be converted to B4XViewWrapper
parent.mostCurrent._xviewpos._viewsetrelright(mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper)(parent.mostCurrent._btntomove.getObject()),(anywheresoftware.b4a.objects.B4XViewWrapper)(parent.mostCurrent._button2.getObject()),(int) (0));
P.S. I watched xCustomListView. In it, Add requires a B4XView as parameter (name pnl) and it works
P.P.S. Works it? I'm not sure, always used as class.
This code module works well in b4a and b4j projects. I compiled the module to a b4a library.
Then I ran the same project (b4a) which used the code module, replacing the module with the library and I get this error at compilation time:
src\b4a\example\main.java:432: error: incompatible types: Button cannot be converted to B4XViewWrapper
parent.mostCurrent._xviewpos._viewsetrelright(mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper)(parent.mostCurrent._btntomove.getObject()),(anywheresoftware.b4a.objects.B4XViewWrapper)(parent.mostCurrent._button2.getObject()),(int) (0));
P.S. I watched xCustomListView. In it, Add requires a B4XView as parameter (name pnl) and it works
P.P.S. Works it? I'm not sure, always used as class.
Last edited: