Hi everyone, i've a customlistview, with custom elements.
In each element there is a CircularProgressBar, i want to incremente the value of a circularprogressbar in one element.
The code to do it:
This code generate this error:
java.lang.RuntimeException: Field: ba not found in: anywheresoftware.b4a.BALayout
I saw this post in the forum, But if I use p4.GetView(0).Tag I got this error
java.lang.RuntimeException: Field: ba not found in: java.lang.String
Thank you in advance
In each element there is a CircularProgressBar, i want to incremente the value of a circularprogressbar in one element.
The code to do it:
B4X:
Public Sub AggiornaProgress(Data() As Object)
'0 = Progress Value
'1 = Uploaded Files
'2 = Total Files
'3 = Filename
If Data(0) == 0 Then 'It means one file started
For i=0 To clvFoto.Size-1
cardValue = clvFoto.GetValue(i)
nameToString = Data(3)
nameToString = nameToString.Replace($"${barCodeData}_"$, "")
Dim splitele() As String
splitele = Regex.Split("_", cardValue.filename)
If splitele(1) == nameToString Then 'if the image stored in the element matches the one sent via ftp
Dim p As B4XView = clvFoto.GetPanel(i) 'clv panel
Dim p2 As B4XView = p.GetView(0) 'mypanel (pnlFoto)
Dim p3 As B4XView = p2.GetView(3) 'another my panel
Dim p4 As B4XView = p3.GetView(0) 'another my panel2
p3.Visible = True
Dim c As CircularProgressBar = p4.GetView(0).Tag 'this View IS a CircularProgressbar
c.Value = Data(0) 'HERE CRASHES'
Exit
End If
Next
Else
lastCrcReference.Value = Data(0)
End If
End Sub
This code generate this error:
java.lang.RuntimeException: Field: ba not found in: anywheresoftware.b4a.BALayout
I saw this post in the forum, But if I use p4.GetView(0).Tag I got this error
java.lang.RuntimeException: Field: ba not found in: java.lang.String
Thank you in advance