📄 months and its days using select case.frm
字号:
VERSION 5.00
Begin VB.Form Form18
BackColor = &H00808080&
Caption = "Form18"
ClientHeight = 5355
ClientLeft = 60
ClientTop = 450
ClientWidth = 8535
BeginProperty Font
Name = "Comic Sans MS"
Size = 11.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
LinkTopic = "Form18"
ScaleHeight = 5355
ScaleWidth = 8535
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 = 3120
TabIndex = 2
Top = 2400
Width = 1815
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 = 4080
TabIndex = 0
Top = 840
Width = 1695
End
Begin VB.Label Label1
Caption = "MONTH NUMBER"
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 = 1920
TabIndex = 1
Top = 840
Width = 1695
End
End
Attribute VB_Name = "Form18"
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)
Select Case A
Case 1, 3, 5, 7, 8, 10, 12
Print "31 DAYS IN THE MONTH"
Case 2
Print "28 DAYS IN THE MONTH"
Case 4, 6, 9, 11
Print "30 DAYS IN THE MONTH"
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -