📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4485
ClientLeft = 60
ClientTop = 360
ClientWidth = 3930
LinkTopic = "Form1"
ScaleHeight = 4485
ScaleWidth = 3930
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "显示变量类型"
Height = 495
Left = 2400
TabIndex = 0
Top = 3840
Width = 1455
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim A As Integer '整数
Dim b As Boolean '布尔数
Dim C As Long '长整数
Dim D As Double '双精度浮点数
Dim E As Single '单精度浮点数
Dim F As Byte '设为字符
Dim G As Currency '设为货币
Dim I As Date '时间
Dim J As String '字符串
Dim K As Object '对象
Private Sub Command1_Click()
' Set K = Command1
Print "变量A的数据类型为:" & TypeName(A)
Print
Print "变量B的数据类型为:" & TypeName(b)
Print
Print "变量C的数据类型为:" & TypeName(C)
Print
Print "变量D的数据类型为:" & TypeName(D)
Print
Print "变量E的数据类型为:" & TypeName(E)
Print
Print "变量F的数据类型为:" & TypeName(F)
Print
Print "变量G的数据类型为:" & TypeName(G)
Print
Print "变量I的数据类型为:" & TypeName(I)
Print
Print "变量J的数据类型为:" & TypeName(J)
Print
Print "变量K的数据类型为:" & TypeName(K)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -