记录VB6.0的学习计划,共勉~
vb6.0吧
全部回复
仅看楼主
level 6
希望大家多多指教
2016年03月01日 13点03分 1
level 6
2016.3.1
DIm 动态过程级
STATIC 静态过程级
两者有啥区别?
2016年03月01日 14点03分 2
level 6
2016.3.1
学习内容:
1.数据类型
2.变量
3.常量
Question:
为什么第一个按钮怎么按都是1,第四个按钮是在第三个按钮的基础上递增
Option Explicit
Dim n As Integer
Private Sub command1_click()
Dim n As Integer
n = n + 1
Command1.Caption = n
End Sub
Private Sub command2_click()
Static n As Integer
n = n + 1
Command2.Caption = n
End Sub
Private Sub command3_click()
n% = n% + 1
Command3.Caption = n%
End Sub
Private Sub command4_click()
n = n + 1
Command4.Caption = n
End Sub
Private Sub ffrom_load()
Form1.Caption = "TEST"
Command1.Caption = ""
Command2.Caption = ""
Command3.Caption = ""
Command4.Caption = ""
End Sub
2016年03月01日 15点03分 3
1