Please asking for help,
I have 2 Types
Im trying to copy arrays......
and getting error message:
B4A line: 53
Main.TpPed(0).TpItem=Array(Main.TpItem)
avac 1.8.0_77
src\b4a\example\db.java:90: error: incompatible types: Object[] cannot be converted To _tpitem
mostCurrent._main._tpped[(int) (0)].TpItem = (b4a.example.main._tpitem)(new Object[]{(Object)(mostCurrent._main._tpitem)});
^
What am I doing wrong?
Thanks for help
I have 2 Types
B4X:
Dim QtdTpItens As Int = 50
Type TpItem(taborig As String, id As Int, Qtd As Double)
Public TpItem(QtdTpItens) As TpItem
Dim QtdTpPedItens As Int = 50
Type TpPed(id As Int, fpgto As Int, fentr As Int, TpItem As TpItem)
Public TpPed(QtdTpPedItens) As TpPed
Im trying to copy arrays......
B4X:
Main.TpPed(0).TpItem=Array(Main.TpItem)
Starter.kvs.Put("tpped", Main.TpPed)
and getting error message:
B4A line: 53
Main.TpPed(0).TpItem=Array(Main.TpItem)
avac 1.8.0_77
src\b4a\example\db.java:90: error: incompatible types: Object[] cannot be converted To _tpitem
mostCurrent._main._tpped[(int) (0)].TpItem = (b4a.example.main._tpitem)(new Object[]{(Object)(mostCurrent._main._tpitem)});
^
What am I doing wrong?
Thanks for help