declare varibale in vb.net code example
Example 1: 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 2: visual basic how to assign a variable
intVar1 = 5