0

hello again

i wrote a class but not able to see the output in visual studio

Public Class Class1
    Public Shared Sub Main()

        Console.WriteLine(Min(10.1, 10))
        Console.WriteLine(Min("last", "first"))
        Console.WriteLine(Min(#1/1/2000#, #3/4/2000#))
        Console.ReadLine()
    End Sub
    Overloads Shared Function Min(ByVal dblA As Double, ByVal dblB As Double) As Double
        Min = IIf(dblA < dblB, dblA, dblB)
    End Function

    Overloads Shared Function Min(ByVal strA As String, ByVal strB As String) As String
        Min = IIf(strA < strB, strA, strB)
    End Function

    Overloads Shared Function Min(ByVal dteA As Date, ByVal dteB As Date) As Date
        Min = IIf(dteA < dteB, dteA, dteB)
    End Function


End Class

Also is there an option other than Console.ReadLine() to stop output screen from running off

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by abhay1234
0

>Also is there an option other than Console.ReadLine() to stop output screen from running off

Debug Menu + Start Without Debugging.

0

Ok thanks. Can i get an answer for my question. I am in dire state with Visual studio i chose console application as new project. It does not recognize my code eg Form, button

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.