Hi,
I've got a routine that checks a website my my external address.
What I'd like to do is loop through the string just to get the first 15 numbers and full stops (periods).
But that isn't my question, my problem is I've got this routine that isn't building because of a string conversion issue.
I don't know how to correct it.
The error is;
I know that's a simple issue to fix, but it's nearly 4am in the morning and this coding stuff is ruining my life..... and I've only just started learning
Cheers
Danny
I've got a routine that checks a website my my external address.
What I'd like to do is loop through the string just to get the first 15 numbers and full stops (periods).
But that isn't my question, my problem is I've got this routine that isn't building because of a string conversion issue.
I don't know how to correct it.
The error is;
VB.NET:
Conversion from string "121.22.98.22" to type 'Boolean' is not valid.
VB.NET:
Sub CheckIP()
Dim URL As String = "http://whatismyip.com/automation/n09230945.asp"
Dim client As WebClient = New WebClient()
Dim data As Stream = client.OpenRead(URL)
Dim reader As StreamReader = New StreamReader(data)
Do While reader.ReadToEnd()
lblGmip.Text = reader.ReadToEnd()
Loop
data.Close()
reader.Close()
End Sub
I know that's a simple issue to fix, but it's nearly 4am in the morning and this coding stuff is ruining my life..... and I've only just started learning
Cheers
Danny