📄 form4.frm
字号:
VERSION 5.00
Begin VB.Form Form4
Caption = "Form4"
ClientHeight = 4755
ClientLeft = 60
ClientTop = 450
ClientWidth = 7860
LinkTopic = "Form4"
ScaleHeight = 4755
ScaleWidth = 7860
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Caption = "PRINT NUMBERS B/W 2 NUMBERS IN ASCENDING ORDER"
Height = 735
Left = 1440
TabIndex = 3
Top = 2280
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "PRINT NUMBERS B/W 2 NUMBERS"
Height = 855
Left = 1440
TabIndex = 2
Top = 1200
Width = 2175
End
Begin VB.TextBox Text2
Height = 855
Left = 4320
TabIndex = 1
Top = 2040
Width = 1815
End
Begin VB.TextBox Text1
Height = 975
Left = 4320
TabIndex = 0
Top = 840
Width = 1815
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Cls
Let a = Val(Text1)
Let B = Val(Text2)
For C = a To B
Print C
Next C
End Sub
Private Sub Command2_Click()
Cls
If Val(Text1) < Val(Text2) Then
a = Val(Text1)
B = Val(Text)
Else
a = Val(Text2)
B = Val(Text1)
End If
For C = a To B
Print C
Next C
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -