⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmstscore.frm

📁 登陆系统 基于vb 开发 本系统需要的功能有: a.首页展示:各个模块的链接
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmStScore 
   Caption         =   "学生成绩管理"
   ClientHeight    =   3060
   ClientLeft      =   120
   ClientTop       =   420
   ClientWidth     =   8700
   LinkTopic       =   "Form1"
   ScaleHeight     =   3060
   ScaleWidth      =   8700
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "Frame1"
      Height          =   1335
      Left            =   240
      TabIndex        =   7
      Top             =   960
      Width           =   8175
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   5160
         TabIndex        =   15
         Top             =   840
         Width           =   2175
      End
      Begin VB.TextBox Text3 
         BackColor       =   &H80000004&
         Height          =   375
         Left            =   5160
         Locked          =   -1  'True
         TabIndex        =   14
         Top             =   240
         Width           =   2175
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1080
         TabIndex        =   13
         Top             =   840
         Width           =   2295
      End
      Begin VB.TextBox Text1 
         BackColor       =   &H80000004&
         Height          =   375
         Left            =   1080
         Locked          =   -1  'True
         TabIndex        =   12
         Top             =   240
         Width           =   2295
      End
      Begin VB.Label Label5 
         Caption         =   "考试成绩:"
         Height          =   375
         Left            =   4320
         TabIndex        =   11
         Top             =   840
         Width           =   1095
      End
      Begin VB.Label Label4 
         Caption         =   "总评成绩:"
         Height          =   495
         Left            =   4320
         TabIndex        =   10
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label3 
         Caption         =   "平时成绩:"
         Height          =   375
         Left            =   240
         TabIndex        =   9
         Top             =   840
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "姓    名:"
         Height          =   375
         Left            =   240
         TabIndex        =   8
         Top             =   240
         Width           =   975
      End
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   1200
      TabIndex        =   6
      Top             =   240
      Width           =   1815
   End
   Begin VB.CommandButton Command4 
      Caption         =   "重置 "
      Height          =   255
      Index           =   5
      Left            =   5640
      TabIndex        =   4
      Top             =   2520
      Width           =   1095
   End
   Begin VB.CommandButton Command5 
      Caption         =   "关闭"
      Height          =   255
      Index           =   4
      Left            =   7320
      TabIndex        =   3
      Top             =   2520
      Width           =   1095
   End
   Begin VB.CommandButton Command3 
      Caption         =   "查找 "
      Height          =   255
      Index           =   2
      Left            =   3840
      TabIndex        =   2
      Top             =   2520
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "下一条"
      Height          =   255
      Index           =   1
      Left            =   1920
      TabIndex        =   1
      Top             =   2520
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "上一条"
      Height          =   255
      Index           =   0
      Left            =   120
      TabIndex        =   0
      Top             =   2520
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "课程名:"
      Height          =   375
      Left            =   360
      TabIndex        =   5
      Top             =   240
      Width           =   735
   End
End
Attribute VB_Name = "frmStScore"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click(Index As Integer)
If Combo1.Text = "" Then
MsgBox "请先选课程名", vbOKOnly, "信息提示!"

End If
'将上次录入“平时成绩”和“考试成绩”显示在相应对话框中
If Combo1.Text = "vb程序设计" Then
arrstlnfo(a, 13) = Text2.Text
arrstlnfo(a, 14) = Text4.Text
End If
If Combo1.Text = "c程序设计" Then
arrrstlnfo(a, 15) = Text2.Text
arrsttlnfo(a, 16) = Text4.Text
End If
a = a - 1
'对一条信息作冗错处理
If a < 0 Then
MsgBox "已经是第一条记录了"
a = 0
Text1.Text = arrstlnfo(a, 1)
If Combo1.Text = "vb程序设计" Then
Text2.Text = arrstlnfo(a, 13)
Text4.Text = arrstlnfo(a, 14)
Text3.Text = arrstlnfo(a, 12)
End If
If Combo1.Text = "c程序设计" Then
Text2.Text = arrstlnfo(a, 15)
Text4.Text = arrstlnfo(a, 16)
Text3.Text = arrstlnfo(a, 17)
End If
Else
Text1.Text = arrstlnfo(a, 1)
If Combo1.Text = "vb程序设计" Then
Text2.Text = arrstlnfo(a, 13)
Text4.Text = arrstlnfo(a, 14)
Text3.Text = arrstlnfo(a, 12)
End If
If Combo1.Text = "c程序设计" Then
Text2.Text = arrstlnfo(a, 15)
Text4.Text = arrstlnfo(a, 16)
Text3.Text = arrstlnfo(a, 17)
End If
End If

End Sub

Private Sub Command2_Click(Index As Integer)
If Combo1.Text = "" Then
 MsgBox "请先选课程名", vbOKOnly, "信息提示!"
End If
'将上次录入“平时成绩”和“考试成绩”显示在相应对话框中
If Combo1.Text = "vb程序设计" Then
arrstlnfo(a, 13) = Val(Text2.Text)
arrstlnfo(a, 14) = Val(Text4.Text)
End If
If Combo1.Text = "c程序设计" Then
arrrstlnfo(a, 15) = Val(Text2.Text)
arrsttlnfo(a, 16) = Val(Text4.Text)
End If
a = a + 1
'对最后一条信息作冗错处理
If a > UBound(arrstlnfo) Then
 MsgBox "以今世最后一条了"
 a = UBound(arrstlnfo)
 If Combo1.Text = "vb程序设计" Then
 Text2.Text = arrstlnfo(a, 13)
 Text4.Text = arrstlnfo(a, 14)
 Text3.Text = arrstlnfo(a, 12)
 End If
 If Combo1.Text = "c程序设计" Then
 Text2.Text = arrstlnfo(a, 15)
 Text4.Text = arrstlnfo(a, 16)
 Text3.Text = arrstlnfo(a, 17)
End If
Else
 Text1.Text = arrstlnfo(a, 1)
 If Combo1.Text = "vb程序设计" Then
 Text2.Text = arrstlnfo(a, 13)
 Text4.Text = arrstlnfo(a, 14)
 Text3.Text = arrstlnfo(a, 12)
 End If
 If Combo1.Text = "c程序设计" Then
 Text2.Text = arrstlnfo(a, 15)
 Text4.Text = arrstlnfo(a, 16)
 Text3.Text = arrstlnfo(a, 17)
 End If
End If
End Sub

Private Sub Command5_Click(Index As Integer)
Unload Me

End Sub

Private Sub form_load()
'为姓名赋初始值
Text1.Text = arrstlnfo(a, 1)
'为课程赋初始值
Combo1.AddItem "vb程序数据"
Combo1.AddItem "c程序数据"

End Sub
Private Sub Form_Unload(cancel As Integer)
ii = MsgBox("确认要退出?", vbYesNo, "警告")
If ii = vbYes Then
cancel = False
Else
cancel = True
End If

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -