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

📄 borrow_re.frm

📁 里面包括图书馆的基本功能
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Borrow_Re 
   Caption         =   "借还书系统"
   ClientHeight    =   7575
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10875
   LinkTopic       =   "Form1"
   Picture         =   "Borrow_Re.frx":0000
   ScaleHeight     =   7575
   ScaleWidth      =   10875
   StartUpPosition =   2  'CenterScreen
   Begin MSFlexGridLib.MSFlexGrid LendedBooks 
      Height          =   2955
      Left            =   600
      TabIndex        =   21
      Top             =   4320
      Width           =   8775
      _ExtentX        =   15478
      _ExtentY        =   5212
      _Version        =   393216
      Cols            =   8
      BackColor       =   16744576
   End
   Begin VB.CommandButton cmdExit 
      BackColor       =   &H00FF8080&
      Caption         =   "退出"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   420
      Left            =   7920
      Style           =   1  'Graphical
      TabIndex        =   20
      Top             =   360
      Width           =   1035
   End
   Begin VB.CommandButton cmdClear 
      BackColor       =   &H00FF8080&
      Caption         =   "清除"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   420
      Left            =   6600
      Style           =   1  'Graphical
      TabIndex        =   19
      Top             =   360
      Width           =   915
   End
   Begin VB.CommandButton cmdReturn 
      BackColor       =   &H00FF8080&
      Caption         =   "还书"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   420
      Left            =   5280
      Style           =   1  'Graphical
      TabIndex        =   18
      Top             =   360
      Width           =   1035
   End
   Begin VB.CommandButton cmdReborrow 
      BackColor       =   &H00FF8080&
      Caption         =   "续借"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   420
      Left            =   3840
      Style           =   1  'Graphical
      TabIndex        =   17
      Top             =   360
      Width           =   1035
   End
   Begin VB.CommandButton cmdBorrow 
      BackColor       =   &H00FF8080&
      Caption         =   "借书"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   420
      Left            =   2520
      Style           =   1  'Graphical
      TabIndex        =   16
      Top             =   360
      Width           =   1035
   End
   Begin VB.CommandButton cmdNum 
      BackColor       =   &H00FF8080&
      Caption         =   "输入读者号"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   9.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   420
      Left            =   480
      Style           =   1  'Graphical
      TabIndex        =   15
      Top             =   360
      Width           =   1320
   End
   Begin VB.TextBox ReaderName 
      Height          =   420
      Left            =   1800
      TabIndex        =   9
      Top             =   2160
      Width           =   2000
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00C0FFFF&
      Caption         =   "读者信息:"
      Height          =   2475
      Left            =   600
      TabIndex        =   0
      Top             =   1320
      Width           =   8655
      Begin VB.TextBox txtBorrowed 
         Height          =   420
         Left            =   5520
         TabIndex        =   14
         Top             =   1680
         Width           =   2115
      End
      Begin VB.TextBox txtBorrows 
         Height          =   420
         Left            =   5520
         TabIndex        =   13
         Top             =   1080
         Width           =   2115
      End
      Begin VB.TextBox txtYN 
         Height          =   420
         Left            =   5520
         TabIndex        =   12
         Top             =   360
         Width           =   2115
      End
      Begin VB.TextBox ReaderType 
         Height          =   420
         Left            =   1200
         TabIndex        =   11
         Top             =   1920
         Width           =   2000
      End
      Begin VB.TextBox Sex 
         Height          =   420
         Left            =   1200
         TabIndex        =   10
         Top             =   1320
         Width           =   2000
      End
      Begin VB.TextBox ReaderNO 
         Height          =   420
         Left            =   1200
         TabIndex        =   2
         Top             =   240
         Width           =   2000
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "已借数"
         ForeColor       =   &H00FF00FF&
         Height          =   435
         Left            =   4200
         TabIndex        =   8
         Top             =   1680
         Width           =   900
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "可借书:"
         ForeColor       =   &H00FF00FF&
         Height          =   435
         Left            =   4080
         TabIndex        =   7
         Top             =   1080
         Width           =   945
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         BackColor       =   &H00FF8080&
         BackStyle       =   0  'Transparent
         Caption         =   "是否欠书:"
         ForeColor       =   &H00FF00FF&
         Height          =   195
         Left            =   4080
         TabIndex        =   6
         Top             =   360
         Width           =   765
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "类别:"
         ForeColor       =   &H00FF00FF&
         Height          =   435
         Left            =   240
         TabIndex        =   5
         Top             =   1800
         Width           =   645
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "性别:"
         ForeColor       =   &H00FF00FF&
         Height          =   435
         Left            =   240
         TabIndex        =   4
         Top             =   1320
         Width           =   645
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "姓名:"
         ForeColor       =   &H00FF00FF&
         Height          =   435
         Left            =   240
         TabIndex        =   3
         Top             =   840
         Width           =   765
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "读者号:"
         ForeColor       =   &H00FF00FF&
         Height          =   435
         Left            =   240
         TabIndex        =   1
         Top             =   300
         Width           =   705
      End
   End
End
Attribute VB_Name = "Borrow_Re"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Dim objBooks As Recordset, objInfo As Recordset




'执行清除操作
Private Sub cmdClear_Click()
    Dim i%
    ReaderNO = "": ReaderName = "": Sex = "": ReaderType = ""
    txtYN = "": txtBorrows = "": txtBorrowed = ""
    cmdNum.Enabled = True: cmdBorrow.Enabled = False
    cmdReborrow.Enabled = False: cmdReturn.Enabled = False
    '清除借书清单
    With LendedBooks
        '删除2以上的行
        If .Rows > 2 Then
            For i = .Rows - 1 To 2 Step -1
                .RemoveItem i
            Next
        End If
        '清除第1行中的借书记录数据
        For i = 0 To .Cols - 1

⌨️ 快捷键说明

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