Wednesday, March 5, 2008

Program Structure of VB.

_____________________________________________

Program Structure of VB.

_____________________________________________

Imports System

Namespace Hello
Class HelloWorld
Overloads Shared Sub Main(ByVal args() As String)
Dim name As String = "VB.NET"

'See if an argument was passed from the command line
If args.Length = 1 Then name = args(0)

Console.WriteLine("Hello, " & name & "!")
End Sub
End Class
End Namespace

____________________________________________________________________

Note:Applicable for .net also asp.net.
____________________________________________________________________

No comments: