在VB中,声明和初始化变量可以通过以下方式完成:
Dim name As String name = "John"
Dim age As Integer = 30
Dim obj As Object Set obj = CreateObject("Scripting.FileSystemObject")
Const PI As Double = 3.14159