variable in visual basic code example
Example 1: visual basic how to declare a variable
Dim intNumber1 As Integer
Example 2: variables vb.net
Dim [VarName] As [DataType]
[VarName] = [Data]
Console.WriteLine([VarName]) 'outputting variables in CMD (Command Prompt)
MsgBox([VarName]) 'outputting variables in a message box
Example 3: visual basic how to assign a variable
intVar1 = 5