how to initialize variables in VB.NET

VB is a very basic language. Its has a very was history .Is not type safe is C#.NET.
VB was created for the ease and flexibility in programming.

NOW, initializing variable in VB.

Dim var As Integer 
Dim str As String  

Here we have initialize two different variable to int  and string Data Type.
We do not need to write semicolon (;) in the end of  the code a VB script .

Comments

Popular posts from this blog

How to use lamda expression for updating using LINQ

using session for login and logout in asp.net

How to post data in MVC using form collection for Beginners.