Converting my app to b4i and when I try to compile I get the attached error.
It is in b4xpage b4i_b4xpagetool and I think it's related to b4i_swiftbutton (which I have quite a few in this layout) but I have no idea where/how.
The error report is just overwhelming for me
Private cutsTxtA12,cutsTxtA11,cutsTxtA10,cutsTxtA9,cutsTxtA8,cutsTxtA7,cutsTxtA6,cutsTxtA5,cutsTxtA4,cutsTxtA3,cutsTxtA2,cutsTxtA1 As Label
Then in a setup routine in my app I fill the array like this
B4X:
count = 0
For Each b4txt As Label In Array(cutsTxtA1,cutsTxtA2,cutsTxtA3,cutsTxtA4,cutsTxtA5,cutsTxtA6,cutsTxtA7,cutsTxtA8,cutsTxtA9,cutsTxtA10,cutsTxtA11,cutsTxtA12)
CutsA(count) = b4txt
CutsA(count).Visible=False
count = count+1
Next
In this line, i would change As Label to As B4XView:
B4X:
Private cutsTxtA12,cutsTxtA11,cutsTxtA10,cutsTxtA9,cutsTxtA8,cutsTxtA7,cutsTxtA6,cutsTxtA5,cutsTxtA4,cutsTxtA3,cutsTxtA2,cutsTxtA1 As B4XView
Instead of this code:
B4X:
count = 0
For Each b4txt As Label In Array(cutsTxtA1,cutsTxtA2,cutsTxtA3,cutsTxtA4,cutsTxtA5,cutsTxtA6,cutsTxtA7,cutsTxtA8,cutsTxtA9,cutsTxtA10,cutsTxtA11,cutsTxtA12)
CutsA(count) = b4txt
CutsA(count).Visible=False
count = count+1
Next
Use simply this code:
B4X:
CutsA = Array As B4XView (cutsTxtA12,cutsTxtA11,cutsTxtA10,cutsTxtA9,cutsTxtA8,cutsTxtA7,cutsTxtA6,cutsTxtA5,cutsTxtA4,cutsTxtA3,cutsTxtA2,cutsTxtA1)