Alright, well this code has been working fine for a bit now, I guess since I was selecting double digit numbers in my Month Calendar but now since its in the Single Digits I'm getting a Error and I know why.
vb Code:
Dim testStr As String = DRow.Item("Date (D/M/Y)").ToString() Dim sr As New SelectionRange() sr.Start = DateTime.Parse(testStr.Substring(testStr.IndexOf("Start: ") + 7, 10)) sr.End = DateTime.Parse(testStr.Substring(testStr.IndexOf("End: ") + 5, 10))
Where +7 and +5 are right beside it ", 10" thats where my error is. 10 is for Double Digits while 9 is for Single Digits, is it possible for me to figure out this way in a different matter? Heres 2 Examples:
Start: 10/8/2008 End: 10/14/2008 < works with , 10 and nine but only grabs 200 and not the 8
Start: 10/1/2008 End: 10/4/2008 < works with , 9




Reply With Quote