now i have to count the number of days in the listbox..
here is an example..
DATE;TIME;VOLUME;OPEN;CLOSE;MIN;MAX
10/08/2003;00:00:01;47;.1;.11;.111;.1111
11/08/2003;00:00:01;15125;.2;.22;.222;.2222
12/08/2003;00:00:01;15280;.3;.33;.333;.3333
13/08/2003;00:00:01;16554;.4;.44;.444;.4444
14/08/2003;00:00:01;11747;.5;.55;.555;.5555
15/08/2003;00:00:01;9840;.6;.66;.666;.6666
16/08/2003;00:00:01;9840;.7;.77;.777;.7777
i need to specifically count the number of days...
for this example it's 7(seven)
i tried this..
listbox1.items.contains(???)but don't know exactly what to put in it...
EDIT
I manage to solved it please check if im on the right way..
Dim i As Integer
For Each item In ListBox1.Items
If item.ToString.Contains(DateFormat.ShortDate) Then
i = i + 1
End If
Next
MsgBox(i)
This post has been edited by polens: 16 May 2011 - 11:43 PM

New Topic/Question
Reply




MultiQuote





|