Hi,
My program should iterate through all items in a listview.It uses a Try structure to handle errors. The problem is, that the program does what it should but when an error occurs, it stops iterating through the list. So i want it to resume with the next item in the list when an error occurs. Is there a simple way to do so?
thanks
This might be of any help:
My program should iterate through all items in a listview.It uses a Try structure to handle errors. The problem is, that the program does what it should but when an error occurs, it stops iterating through the list. So i want it to resume with the next item in the list when an error occurs. Is there a simple way to do so?
thanks
This might be of any help:
VB.NET:
Public Function GetFileInformation(ByVal sURL As String) As FileInformation
Try
Dim URLReq As Net.HttpWebRequest
Dim URLRes As Net.HttpWebResponse
URLReq = Net.WebRequest.Create(sURL)
URLRes = URLReq.GetResponse
GetFileInformation.FileSize = URLRes.ContentLength
GetFileInformation.Status = "Waiting"
Catch ex As Exception
GetFileInformation.Status = "Error"
End Try
End Function
Last edited: