Visual Basic .NET
Visual Basic .NET (VB.NET) may be a multi-paradigm, object-oriented artificial language, enforced on the .NET Framework. Microsoft launched VB.NET in 2002 because the successor to its original Visual Basic language. though the ".NET" portion of the name was born in 2005, this text uses "Visual Basic [.NET]" to visit all Visual Basic languages free since 2002, so as to tell apart between them and also the classic Visual Basic. in conjunction with Visual C#, it's one amongst the 2 main languages targeting the .NET framework.
Microsoft's integrated development atmosphere (IDE) for developing in Visual Basic .NET language is Visual Studio. Most Visual Studio editions square measure commercial; the sole exceptions square measure Visual Studio categorical and Visual Studio Community, that square measure software package. additionally, the .NET Framework SDK includes a software package command-line compiler known as vbc.exe. Mono additionally includes a command-line VB.NET compiler.
Syntax:
VB.NET uses statements to specify actions. the foremost common statement is associate degree expression statement, consisting of associate degree expression to be evaluated, on one line. As a part of that analysis, functions or subroutines could also be known as and variables could also be allotted new values. to switch the traditional serial execution of statements, VB.NET provides many control-flow statements known by reserved keywords. Structured programming is supported by many constructs together with 2 conditional execution constructs (If … Then … Else … finish If and choose Case ... Case ... finish choose ) and 3 unvarying execution (loop) constructs (Do … Loop, For … To, and For Each) . The For … To statement has separate formatting and testing sections, each of that should be gift. (See examples below.) The every|for every} statement steps through each worth in a very list.
In addition, in Visual Basic .NET:
VB.NET uses statements to specify actions. the foremost common statement is associate degree expression statement, consisting of associate degree expression to be evaluated, on one line. As a part of that analysis, functions or subroutines could also be known as and variables could also be allotted new values. to switch the traditional serial execution of statements, VB.NET provides many control-flow statements known by reserved keywords. Structured programming is supported by many constructs together with 2 conditional execution constructs (If … Then … Else … finish If and choose Case ... Case ... finish choose ) and 3 unvarying execution (loop) constructs (Do … Loop, For … To, and For Each) . The For … To statement has separate formatting and testing sections, each of that should be gift. (See examples below.) The every|for every} statement steps through each worth in a very list.
In addition, in Visual Basic .NET:
There is no unified means of shaping blocks of statements. Instead, bound keywords, like "If … Then" or "Sub" area unit taken as starters of sub-blocks of code and have matching termination keywords like "End If" or "End Sub".
Statements area unit terminated either with a colon (":") or with the tip of line. Multiple line statements in Visual Basic .NET area unit enabled with " _" at the tip of every such line. the requirement for the underscore continuation character was mostly removed in version ten and later versions.[3]
The sign ("=") is employed in each distribution values to variables and compared.
Round brackets (parentheses) area unit used with arrays, each to declare them and to urge a price at a given index in one in every of them. Visual Basic .NET uses spherical brackets to outline the parameters of subroutines or functions.
A single punctuation ('), placed at the start of a line or once any variety of area or tab characters at the start of a line, or once different code on a line, indicates that the (remainder of the) line could be a comment.
Comments
Post a Comment
If you have any query, please let us know