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

📄 frmtestdiy.frm

📁 上机考试系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form TestDIY 
   AutoRedraw      =   -1  'True
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "手工选题"
   ClientHeight    =   6525
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   10050
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   6525
   ScaleWidth      =   10050
   ShowInTaskbar   =   0   'False
   Begin VB.ListBox lstProFill 
      Height          =   2400
      Left            =   7155
      TabIndex        =   18
      Top             =   3575
      Width           =   1065
   End
   Begin VB.ListBox lstProRead 
      Height          =   2400
      Left            =   7155
      TabIndex        =   16
      Top             =   495
      Width           =   1065
   End
   Begin VB.ListBox lstSelOne 
      Height          =   2400
      Left            =   5895
      TabIndex        =   14
      Top             =   3575
      Width           =   1065
   End
   Begin VB.CommandButton cmdExit 
      Cancel          =   -1  'True
      Caption         =   "退出"
      Height          =   300
      Left            =   7455
      TabIndex        =   13
      Top             =   6090
      Width           =   750
   End
   Begin VB.PictureBox picNavigation 
      AutoSize        =   -1  'True
      BorderStyle     =   0  'None
      Height          =   350
      Left            =   1155
      ScaleHeight     =   345
      ScaleWidth      =   2415
      TabIndex        =   7
      Top             =   6105
      Width           =   2410
      Begin VB.TextBox txtNews 
         Height          =   270
         Left            =   585
         Locked          =   -1  'True
         TabIndex        =   12
         TabStop         =   0   'False
         Top             =   0
         Width           =   1185
      End
      Begin VB.CommandButton cmdMove 
         Height          =   270
         Index           =   2
         Left            =   1725
         Picture         =   "frmTestDIY.frx":0000
         Style           =   1  'Graphical
         TabIndex        =   11
         Top             =   0
         Width           =   300
      End
      Begin VB.CommandButton cmdMove 
         Height          =   270
         Index           =   3
         Left            =   2010
         Picture         =   "frmTestDIY.frx":0044
         Style           =   1  'Graphical
         TabIndex        =   10
         Top             =   0
         Width           =   300
      End
      Begin VB.CommandButton cmdMove 
         Height          =   270
         Index           =   0
         Left            =   -15
         Picture         =   "frmTestDIY.frx":0090
         Style           =   1  'Graphical
         TabIndex        =   9
         Top             =   0
         Width           =   300
      End
      Begin VB.CommandButton cmdMove 
         Height          =   270
         Index           =   1
         Left            =   270
         Picture         =   "frmTestDIY.frx":00DD
         Style           =   1  'Graphical
         TabIndex        =   8
         Top             =   0
         Width           =   300
      End
   End
   Begin VB.CommandButton cmdOk 
      Caption         =   "确定"
      Height          =   300
      Left            =   6585
      TabIndex        =   6
      Top             =   6090
      Width           =   750
   End
   Begin VB.CommandButton cmdAdd 
      Caption         =   "添加"
      Height          =   300
      Left            =   3915
      TabIndex        =   5
      Top             =   6090
      Width           =   750
   End
   Begin VB.ListBox lstJudge 
      Height          =   2400
      Left            =   5895
      TabIndex        =   4
      Top             =   495
      Width           =   1065
   End
   Begin VB.TextBox txtTest 
      Height          =   5445
      Left            =   360
      MultiLine       =   -1  'True
      ScrollBars      =   3  'Both
      TabIndex        =   2
      Top             =   495
      Width           =   5325
   End
   Begin VB.ComboBox cmbType 
      Height          =   300
      ItemData        =   "frmTestDIY.frx":0121
      Left            =   1170
      List            =   "frmTestDIY.frx":0131
      Style           =   2  'Dropdown List
      TabIndex        =   1
      Top             =   135
      Width           =   1620
   End
   Begin VB.Label lblPF 
      AutoSize        =   -1  'True
      Caption         =   "Label13"
      Height          =   180
      Index           =   2
      Left            =   8580
      TabIndex        =   31
      Top             =   4800
      Width           =   630
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "填空数为4的题"
      Height          =   180
      Left            =   8325
      TabIndex        =   30
      Top             =   4557
      Width           =   1170
   End
   Begin VB.Label lblPF 
      AutoSize        =   -1  'True
      Caption         =   "Label11"
      Height          =   180
      Index           =   1
      Left            =   8580
      TabIndex        =   29
      Top             =   4314
      Width           =   630
   End
   Begin VB.Label Label10 
      AutoSize        =   -1  'True
      Caption         =   "填空数为3的题"
      Height          =   180
      Left            =   8340
      TabIndex        =   28
      Top             =   4071
      Width           =   1170
   End
   Begin VB.Label lblPF 
      AutoSize        =   -1  'True
      Caption         =   "Label9"
      Height          =   180
      Index           =   0
      Left            =   8580
      TabIndex        =   27
      Top             =   3828
      Width           =   540
   End
   Begin VB.Label Label8 
      AutoSize        =   -1  'True
      Caption         =   "填空数为2的题"
      Height          =   180
      Left            =   8325
      TabIndex        =   26
      Top             =   3585
      Width           =   1170
   End
   Begin VB.Label lblPR 
      AutoSize        =   -1  'True
      Caption         =   "Label7"
      Height          =   180
      Index           =   2
      Left            =   8580
      TabIndex        =   25
      Top             =   1905
      Width           =   540
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      Caption         =   "分题干数为3的题"
      Height          =   180
      Left            =   8325
      TabIndex        =   24
      Top             =   1629
      Width           =   1350
   End
   Begin VB.Label lblPR 
      AutoSize        =   -1  'True
      Caption         =   "Label5"
      Height          =   180
      Index           =   1
      Left            =   8580
      TabIndex        =   23
      Top             =   1353
      Width           =   540
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "分题干数为2的题"
      Height          =   180
      Left            =   8325
      TabIndex        =   22
      Top             =   1077
      Width           =   1350
   End
   Begin VB.Label lblPR 
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      Caption         =   "Label3"
      ForeColor       =   &H80000008&
      Height          =   180
      Index           =   0
      Left            =   8520
      TabIndex        =   21
      Top             =   801
      Width           =   540
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "分题干数为1的题"
      Height          =   180
      Left            =   8325
      TabIndex        =   20
      Top             =   525
      Width           =   1350
   End
   Begin VB.Label lblProFill 
      AutoSize        =   -1  'True
      Caption         =   "程序填空题"
      Height          =   180
      Left            =   7155
      TabIndex        =   19
      Top             =   3285
      Width           =   900
   End
   Begin VB.Label lblProRead 
      AutoSize        =   -1  'True
      Caption         =   "程序阅读题"
      Height          =   180
      Left            =   7155
      TabIndex        =   17
      Top             =   195
      Width           =   900
   End
   Begin VB.Label lblSelOne 
      AutoSize        =   -1  'True
      Caption         =   "选择题"
      Height          =   180
      Left            =   5895
      TabIndex        =   15
      Top             =   3270
      Width           =   540
   End
   Begin VB.Label lblJudge 
      AutoSize        =   -1  'True
      Caption         =   "判断题"
      Height          =   180
      Left            =   5895
      TabIndex        =   3
      Top             =   195
      Width           =   540
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "试题类型"
      Height          =   180
      Left            =   375
      TabIndex        =   0
      Top             =   195
      Width           =   720
   End
End
Attribute VB_Name = "TestDIY"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim objTemp As New Recordset                        '用于保存各题型题库数据
Dim iJ%, iSO%, iPR%, iPF%                           '用于保存各题型小题数设置参数
Dim iDivPR%(3), iDivPF%(3), iDPR%(3), iDPF%(3)      '用于保存程序阅读和程序填空题的设置参数
Dim vJ, vS, vPR, vPF                                '用于保存各题型选择试题的题号
Private Sub cmbType_Click()
    '选择试题库
    Select Case cmbType.ListIndex
        Case 0
            Set objTemp = objJudge.Clone
        Case 1
            Set objTemp = objSelOne.Clone
        Case 2
            Set objTemp = objProRead.Clone
        Case 3
            Set objTemp = objProFill.Clone
    End Select
    cmdMove(0).Value = True
End Sub

Private Sub cmdAdd_Click()
    '根据试题类型将当前试题编号添加到选题列表中
    Select Case cmbType.ListIndex
        Case 0
            If iJ = lstJudge.ListCount Then     '检查是否已经选足题量
                MsgBox "已经选足判断题!", vbInformation, Me.Caption
            Else
                Add_Item lstJudge   '添加判断题
            End If
        Case 1
            If iSO = lstSelOne.ListCount Then   '检查是否已经选足题量
                MsgBox "已经选足选择题!", vbInformation, Me.Caption
            Else
                Add_Item lstSelOne  '添加选择题
            End If
        Case 2
            If iPR = iDPR(1) + iDPR(2) * 2 + iDPR(3) * 3 Then '检查是否已经选足题量
                MsgBox "已经选足程序阅读题!", vbInformation, Me.Caption
            Else
                Add_Item lstProRead '添加程序阅读题
            End If
        Case 3
            If iPF = iDPF(1) * 2 + iDPF(2) * 3 + iDPF(3) * 4 Then '检查是否已经选足题量
                MsgBox "已经选足程序填空题!", vbInformation, Me.Caption
            Else
                Add_Item lstProFill '添加程序填空题
            End If
    End Select
End Sub

⌨️ 快捷键说明

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