I want to retrive data for this path which i can do, but the problem is I want the lastpart i.e. 1378 to increase by one every time

"http://www.cric8.com/livescorecard/od_minicard2_1378.html"

How can I do that in VB.NET2003???

Recommended Answers

All 2 Replies

Dim MIN As Integer = 1378
Dim MAX As Integer = 2000

For i As Integer = MIN To Max
        SomeSub(String.Format("http://www.cric8.com/livescorecard/od_minicard2_{0}.html", i.ToString()))

Next i

Private Sub SomeSub(url As String)
    'Do some funky thing with url
End Sub

Or something like that... gad I hate VB syntax, yuck!

Use InStrRev function to get the position of the "_" and then use left$ to get the required text.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.