Hi to all,
i have this code in a sub:
when run got this error:
*****
Compiling code. 0.03
Compiling layouts code. 0.00
Generating R file. 0.02
Compiling generated Java code. Error
B4A line: 255
If v Is Canvas Then
javac 1.7.0_03
src\android\xyz\main.java:1110: error: inconvertible types
if (_v.getObjectOrNull() instanceof anywheresoftware.b4a.objects.drawable.CanvasWrapper) {
^
required: CanvasWrapper
found: View
1 error
*****
if i try this code with a panel all ok, but tha panel is not good in this case for me, i need of a canvas because i must rotate the text.
I don't know the mean of the error, How can resolve it?
thanks to all.
i have this code in a sub:
B4X:
For i = 0 To Activity.NumberOfViews -1
Dim v As View
v=Activity.GetView (i)
If v Is Canvas Then
Activity.RemoveViewAt (i)
End If
Next
when run got this error:
*****
Compiling code. 0.03
Compiling layouts code. 0.00
Generating R file. 0.02
Compiling generated Java code. Error
B4A line: 255
If v Is Canvas Then
javac 1.7.0_03
src\android\xyz\main.java:1110: error: inconvertible types
if (_v.getObjectOrNull() instanceof anywheresoftware.b4a.objects.drawable.CanvasWrapper) {
^
required: CanvasWrapper
found: View
1 error
*****
if i try this code with a panel all ok, but tha panel is not good in this case for me, i need of a canvas because i must rotate the text.
I don't know the mean of the error, How can resolve it?
thanks to all.
Last edited: