hi
the code:
everything is fine
except the color of label1.text
each line of the listview are red
thanks in advance
michel
the code:
B4X:
For i = 0 To myarray.Length - 1
Dim ladate As String:ladate=Regex.split("]",daterangeserveur)(i).SubString(2)
Dim label1 As Label:label1 = Listv.SingleLineLayout.Label
label1.Text=Regex.Split("\,","DU,FROM,DEL,DELLA,VOM,")(lang - 1) & ":" & myarray(i).Replace("|","")
If datesvertesdep <> "" Then
If datesvertesdep.IndexOf("ERREURS")=-1 Then
If i < Regex.Split("]",datesvertesdep).Length Then
If Regex.Split("]",datesvertesdep)(i)=ladate Then
label1.Text="green=" & i
label1.TextColor=Colors.Green
Else
label1.TextColor=Colors.red
label1.text="red=" & i
End If
End If 'If i <Regex.Split("]",datesvertesdep).Length Then
End If 'If datesvertesdep.IndexOf("ERREURS")=-1 Then
End If 'If datesvertesdep <> "" Then
Listv.AddSingleLine(label1.text)
Next
everything is fine
except the color of label1.text
each line of the listview are red
thanks in advance
michel