📄 实验2.2.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "转换"
Height = 615
Left = 1560
TabIndex = 4
Top = 2280
Width = 1455
End
Begin VB.TextBox Text2
Height = 615
Left = 2280
TabIndex = 3
Top = 1440
Width = 1335
End
Begin VB.TextBox Text1
Height = 615
Left = 2280
TabIndex = 2
Top = 480
Width = 1335
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "您的成绩"
Height = 495
Left = 600
TabIndex = 1
Top = 1440
Width = 1335
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "输入分数"
Height = 615
Left = 600
TabIndex = 0
Top = 480
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim x As Single, y As String
x = Val(Text1.Text)
Select Case x
Case 90 To 100
y = "优"
Case 80 To 90
y = "良"
Case 70 To 80
y = "中"
Case 60 To 70
y = "及格"
Case Else
y = "不及格"
End Select
Text2.Text = y
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -