Try Catch Finally e la gestione delle eccezioni
Try
Dim i as Integer = 100
Dim j as Integer = 0
Dim k As Integer k = i/j
Catch ex As Exception
Console.WriteLine("Errore:" & ex.Message)
Finally
Console.WriteLine("Il finally viene sempre eseguito")
End Try
Scarica il Codice...
Stampa la pagina