Module ExecptionHandlingExample Sub Main() Dim a, b, c As Integer Console.Write("Enter a and b :") a = CInt(Console.ReadLine) b = CInt(Console.ReadLine) Console.WriteLine("a = " + a.ToString()) Console.WriteLine("b = " + b.ToString()) Console.WriteLine() Try c = a \ b Console.WriteLine("c = " + c.ToString()) Catch ex As Exception Console.WriteLine("Exception occured: " + ex.Message()) End Try Console.ReadLine() End Sub End Module
Visual Basic dot net VB.net programming microsoft .net framework object oriented language network enabled technology visual basic 2005 IDE integrated development environment console application microsoft cre common runtime environment
Exception Handling Example
Subscribe to:
Post Comments (Atom)
kuşadası
ReplyDeletesiirt
van
hakkari
aydın
13B1