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

📄 singleedit.frm

📁 这是我们公司的题库管理系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form SingleEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "单项选择题管理"
   ClientHeight    =   6750
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9945
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6750
   ScaleWidth      =   9945
   StartUpPosition =   2  '屏幕中心
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   4680
      Top             =   3120
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.ComboBox cmbChapter 
      Height          =   300
      ItemData        =   "SingleEdit.frx":0000
      Left            =   1295
      List            =   "SingleEdit.frx":0002
      Style           =   2  'Dropdown List
      TabIndex        =   35
      Top             =   225
      Width           =   4425
   End
   Begin VB.CommandButton cmdAddChapter 
      Caption         =   "添加一章"
      Height          =   375
      Left            =   5900
      TabIndex        =   34
      Top             =   188
      Width           =   1095
   End
   Begin VB.CommandButton cmdEditChapter 
      Caption         =   "修改章名"
      Height          =   375
      Left            =   7160
      TabIndex        =   33
      Top             =   188
      Width           =   1095
   End
   Begin VB.CommandButton cmdDeleteChapter 
      Caption         =   "删除本章"
      Height          =   375
      Left            =   8435
      TabIndex        =   32
      Top             =   188
      Width           =   1095
   End
   Begin VB.Frame fraEditTest 
      Caption         =   "编辑试题"
      Height          =   1845
      Left            =   8235
      TabIndex        =   27
      Top             =   750
      Width           =   1320
      Begin VB.CommandButton cmdEdit 
         Caption         =   "修改本题"
         Height          =   315
         Left            =   135
         TabIndex        =   31
         Top             =   240
         Width           =   1095
      End
      Begin VB.CommandButton cmdDelete 
         Caption         =   "删除本题"
         Height          =   315
         Left            =   135
         TabIndex        =   30
         Top             =   630
         Width           =   1095
      End
      Begin VB.CommandButton cmdAdd 
         Caption         =   "增加新题"
         Height          =   315
         Left            =   135
         TabIndex        =   29
         Top             =   1020
         Width           =   1095
      End
      Begin VB.CommandButton cmdSave 
         Caption         =   "保存本题"
         Enabled         =   0   'False
         Height          =   315
         Left            =   135
         TabIndex        =   28
         Top             =   1410
         Width           =   1095
      End
   End
   Begin VB.Frame fraEditPic 
      Caption         =   "编辑图片"
      Enabled         =   0   'False
      Height          =   1020
      Left            =   8235
      TabIndex        =   24
      Top             =   2850
      Width           =   1320
      Begin VB.CommandButton cmdDeletePic 
         Caption         =   "删除图片"
         Height          =   315
         Left            =   135
         TabIndex        =   26
         Top             =   592
         Width           =   1095
      End
      Begin VB.CommandButton cmdAddPic 
         Caption         =   "添加图片"
         Height          =   315
         Left            =   135
         TabIndex        =   25
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.Frame fraChangeRecord 
      Caption         =   "切换试题"
      Height          =   1785
      Left            =   8250
      TabIndex        =   19
      Top             =   4155
      Width           =   1335
      Begin VB.CommandButton cmdMoveLast 
         Caption         =   "最后题"
         Height          =   315
         Left            =   120
         TabIndex        =   23
         Top             =   1350
         Width           =   1095
      End
      Begin VB.CommandButton cmdMoveNaext 
         Caption         =   "下一题"
         Height          =   315
         Left            =   120
         TabIndex        =   22
         Top             =   980
         Width           =   1095
      End
      Begin VB.CommandButton cmdMovePre 
         Caption         =   "上一题"
         Height          =   315
         Left            =   120
         TabIndex        =   21
         Top             =   610
         Width           =   1095
      End
      Begin VB.CommandButton cmdMoveFirst 
         Caption         =   "第一题"
         Height          =   315
         Left            =   120
         TabIndex        =   20
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.CommandButton cmdExit 
      Cancel          =   -1  'True
      Caption         =   "关闭"
      Height          =   315
      Left            =   8280
      TabIndex        =   18
      Top             =   6240
      Width           =   1200
   End
   Begin VB.Frame fraLevel 
      Caption         =   "难度"
      Enabled         =   0   'False
      Height          =   525
      Left            =   375
      TabIndex        =   6
      Top             =   6019
      Width           =   2490
      Begin VB.OptionButton optLevel 
         Caption         =   "容易"
         Height          =   285
         Index           =   2
         Left            =   1680
         TabIndex        =   9
         Top             =   203
         Width           =   675
      End
      Begin VB.OptionButton optLevel 
         Caption         =   "一般"
         Height          =   195
         Index           =   1
         Left            =   855
         TabIndex        =   8
         Top             =   248
         Width           =   690
      End
      Begin VB.OptionButton optLevel 
         Caption         =   "难"
         Height          =   240
         Index           =   0
         Left            =   285
         TabIndex        =   7
         Top             =   225
         Width           =   615
      End
   End
   Begin VB.Frame fraAnswer 
      Caption         =   "答案"
      Enabled         =   0   'False
      Height          =   1695
      Left            =   375
      TabIndex        =   5
      Top             =   4245
      Width           =   7755
      Begin VB.TextBox txtAnswer 
         Height          =   315
         Index           =   3
         Left            =   585
         TabIndex        =   17
         Top             =   1215
         Width           =   7110
      End
      Begin VB.TextBox txtAnswer 
         Height          =   315
         Index           =   2
         Left            =   585
         TabIndex        =   16
         Top             =   880
         Width           =   7110
      End
      Begin VB.TextBox txtAnswer 
         Height          =   315
         Index           =   1
         Left            =   585
         TabIndex        =   15
         Top             =   545
         Width           =   7110
      End
      Begin VB.TextBox txtAnswer 
         Height          =   315
         Index           =   0
         Left            =   585
         TabIndex        =   14
         Top             =   210
         Width           =   7110
      End
      Begin VB.OptionButton optAnswer 
         Caption         =   "D"
         Height          =   180
         Index           =   3
         Left            =   150
         TabIndex        =   13
         Top             =   1282
         Width           =   435
      End
      Begin VB.OptionButton optAnswer 
         Caption         =   "C"
         Height          =   180
         Index           =   2
         Left            =   150
         TabIndex        =   12
         Top             =   947
         Width           =   435
      End
      Begin VB.OptionButton optAnswer 
         Caption         =   "B"
         Height          =   180
         Index           =   1
         Left            =   150
         TabIndex        =   11
         Top             =   612
         Width           =   435
      End
      Begin VB.OptionButton optAnswer 
         Caption         =   "A"
         Height          =   180
         Index           =   0
         Left            =   165
         TabIndex        =   10
         Top             =   277
         Width           =   435
      End
   End
   Begin VB.TextBox txtNews 
      Height          =   300
      Left            =   3015
      Locked          =   -1  'True
      TabIndex        =   4
      Top             =   6244
      Width           =   5115
   End
   Begin VB.TextBox txtContent 
      Height          =   3375
      Left            =   375
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   3
      Top             =   750
      Width           =   3105
   End
   Begin VB.Frame Frame1 
      Caption         =   "图片"
      Height          =   3375
      Left            =   3600
      TabIndex        =   1
      Top             =   750
      Width           =   4530
      Begin VB.PictureBox Picture1 
         Height          =   2985
         Left            =   150
         ScaleHeight     =   2925
         ScaleWidth      =   4140
         TabIndex        =   2
         Top             =   270
         Width           =   4200
      End
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "选择章节:"
      Height          =   180
      Left            =   414
      TabIndex        =   0
      Top             =   285
      Width           =   900
   End
End
Attribute VB_Name = "SingleEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim objCn As Connection, objRs As Recordset, objRsChapter As Recordset
Dim isAdding As Boolean, picName As String
Private Sub cmbChapter_Click()
    If cmbChapter <> "" Then
        objRs.Filter = "章节=" & cmbChapter.ItemData(cmbChapter.ListIndex)
        If objRs.RecordCount > 0 Then objRs.MoveFirst
        Show_Data
    Else
        objRs.Filter = "章节=-99999"
        Show_Data
    End If
End Sub


Private Sub cmdAdd_Click()
    Dim i%
    If cmbChapter = "" Then Exit Sub
    isAdding = True
    fraChangeRecord.Enabled = False

⌨️ 快捷键说明

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