Hello.
I successfully wrote a code to retrieve a version number from a HTML page which is this code:
Using this code:HTML Code:<div class="header">Latest Version: <span class="version">6.59</span></div>
So the following code will return the version number which currently is 6.59 which is what I'm after.VB Code:
Dim src As String Dim net As New Net.WebClient() src = net.DownloadString("http://site.com") version = src.Substring(InStr(src, "Latest Version:", CompareMethod.Text) + 33, 4)
But then i remembered that releases are done as following: 6.59, 6.59b, 6.59c, 6.60, 6.60b etc.
So when the b version of 6.59 is released the parser will still return 6.59. So how can i make this code better?
Thank you




Reply With Quote