PumaCyan Member Licensed User May 26, 2020 #1 How do I count the items in CLV? if I have 2 types of data, then I show the total on the label below it ...
How do I count the items in CLV? if I have 2 types of data, then I show the total on the label below it ...
Erel B4X founder Staff member Licensed User Longtime User May 26, 2020 #2 Put all the information you need in the items values. B4X: For i = 0 To CLV1.Size - 1 Dim yt As YourType = CLV1.GetValue(i) If yt.IsType1 Then Counter1 = Counter1 + 1 Else Counter2 = Counter2 + 1 Next Upvote 0
Put all the information you need in the items values. B4X: For i = 0 To CLV1.Size - 1 Dim yt As YourType = CLV1.GetValue(i) If yt.IsType1 Then Counter1 = Counter1 + 1 Else Counter2 = Counter2 + 1 Next
S syerif Active Member Licensed User Longtime User May 26, 2020 #3 You also can do counter with general variable while load your all data into custom listview.., how you can identify masuk absensi and belum absensi this is your key for counting Upvote 0
You also can do counter with general variable while load your all data into custom listview.., how you can identify masuk absensi and belum absensi this is your key for counting