Page 1 of 1

VB.NET: Variables

Posted: Fri Apr 10, 2026 1:56 pm
by Jason

Code: Select all

Sub Main()

End Sub

Sub Lets_declare_some_variables()

' Variable names must start with a letter. They rest can contain letters, numbers, or underscores.  They are not case sensitive.

Dim Integer_example As Integer = 2

Dim String_example As String = "Hosting Chatter"

Dim Double_example As Double = 4.0

Dim Boolean_example As Boolean = True

End Sub