Firstly ... this line will always return the value of the first item ... ie: i always = 0
Dim i As Int
Dim iv As ItemValue= CustomListViewPRODUTOSESCALONADOS.GetValue(i)
if you were passing an index to the sub (to test a single value) it would make sense .. ie:
Sub Find_items_customLSTview(index)
Dim iv As ItemValue= CustomListViewPRODUTOSESCALONADOS.GetValue(index)
What is ItemValue ?
try this ...
For i=0 To CustomListViewPRODUTOSESCALONADOS.Size -1
Dim pnl As B4XView = CustomListViewPRODUTOSESCALONADOS.GetPanel(i)
If pnl.GetView(0).Text > 0 Then 'view(0) = 1st edittext on panel.. refer order in Designer ViewTree for Item/Row layout
Log( "Yes " & CustomListViewPRODUTOSESCALONADOS.GetValue(i))
End If
Next
This is just a longer method .. but might make it clearer to you.
For i=0 To CustomListViewPRODUTOSESCALONADOS.Size -1
Dim pnl As B4XView = CustomListViewPRODUTOSESCALONADOS.GetPanel(i)
Dim edtText As B4XView = pnl.GetView(0)
If edtText.Text > 0 Then
'ditto
ps: just a suggestion .. possibly rename your CLV to clvPRODUTOSESCALONADOS[/code]