Only Exit Try : Exit Try « Language Basics « VB.Net






Only Exit Try

Only Exit Try
Imports System


public class MainClass
   Shared Sub Main()
      Try
          Dim Result As Double = 100 \ CInt("0")
          Console.WriteLine(Result)
      Catch DivByZero As System.DivideByZeroException
          Exit Try

      End Try
      Console.WriteLine("** outside try **")
      
   End Sub
End Class


           
       








Related examples in the same category