Sub btnDummy_Click
Dim dates(RC) As Long
CheckMeasCount
RC=MsGlIDList.Size
'StartActivity(SimpleGraph)
DateTime.DateFormat = "yyyy-MM-dd"
DateTime.TimeFormat = "HH:mm"
MsD2List.Initialize
DtValue = DateTime.DateParse(edtDte.Text)
For i = 0 To RC-1
Dim datesplit() As String 'define an array to hold the date and time after we split it
datesplit = Regex.Split(" ", MsDATESList.Get(i)) 'split Date and Time at the Space between Date and Time ex. "2015-1-16 14:30"
'Log("epoch: " & DateTime.DateTimeParse(datesplit(0), datesplit(1)))
dates(i) = DateTime.DateTimeParse(datesplit(0), datesplit(1)) 'convert date and time to epoch values so that the graph library can use them
If dates(i) >= DtValue Then
MsD2List.Add(MsDATESList.Get(i))
End If
Next
ToastMessageShow("Number of Rows: " & MsD2List.Size, True)
End Sub