📄 sum upto that number.frm
字号:
VERSION 5.00
Begin VB.Form Form8
BackColor = &H00808080&
Caption = "Form8"
ClientHeight = 5340
ClientLeft = 60
ClientTop = 450
ClientWidth = 8205
ForeColor = &H00FFFFFF&
LinkTopic = "Form8"
ScaleHeight = 5340
ScaleWidth = 8205
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.CommandButton Command1
Caption = "DONE"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 1680
TabIndex = 2
Top = 2640
Width = 2535
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "Monotype Corsiva"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 3720
TabIndex = 1
Top = 600
Width = 1695
End
Begin VB.Label Label1
Caption = "SUM UPTO THAT NUMBER"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 720
TabIndex = 0
Top = 720
Width = 1935
End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Let N = Val(Text1)
A = 1
B = 0
While A <= N
B = B + A
A = A + 1
Wend
Print B
End Sub
Private Sub Command2_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -