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

📄 frmdel.frm

📁 VB下的航空公司信息管理系统.关键词: 航空公司管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmDel 
   Caption         =   "用户删除"
   ClientHeight    =   1710
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4170
   Icon            =   "FrmDel.frx":0000
   LinkTopic       =   "Form2"
   ScaleHeight     =   1710
   ScaleWidth      =   4170
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton CmdExit 
      Caption         =   "退出(&E)"
      Height          =   375
      Left            =   3000
      TabIndex        =   7
      Top             =   1200
      Width           =   1095
   End
   Begin VB.CommandButton Cmdremove 
      Caption         =   "删除(&D)"
      Height          =   375
      Left            =   1800
      TabIndex        =   6
      Top             =   1200
      Width           =   1095
   End
   Begin VB.CommandButton CmdLast 
      Caption         =   ">|"
      Height          =   375
      Left            =   3000
      TabIndex        =   5
      Top             =   720
      Width           =   975
   End
   Begin VB.CommandButton CmdNext 
      Caption         =   ">"
      Height          =   375
      Left            =   2040
      TabIndex        =   4
      Top             =   720
      Width           =   975
   End
   Begin VB.CommandButton CmdPrev 
      Caption         =   "<"
      Height          =   375
      Left            =   1200
      TabIndex        =   3
      Top             =   720
      Width           =   855
   End
   Begin VB.CommandButton CmdFirst 
      Caption         =   "|<"
      Height          =   375
      Left            =   240
      TabIndex        =   2
      Top             =   720
      Width           =   975
   End
   Begin VB.TextBox TxtName 
      Height          =   270
      Left            =   1080
      TabIndex        =   0
      Top             =   240
      Width           =   2775
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "用户名:"
      Height          =   180
      Left            =   240
      TabIndex        =   1
      Top             =   240
      Width           =   720
   End
End
Attribute VB_Name = "FrmDel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim clsm As ClsMain

Private Sub CmdExit_Click()
    Unload Me
End Sub
Private Sub CmdNext_Click()
    clsm.g_DBRct.MoveNext
    If clsm.g_DBRct.EOF = True Then
        clsm.g_DBRct.MoveLast
    End If
    Call ShowData
End Sub
Private Sub CmdPrev_Click()
    clsm.g_DBRct.MovePrevious
    If clsm.g_DBRct.BOF = True Then
        clsm.g_DBRct.MoveFirst
    End If
        Call ShowData
End Sub
Private Sub CmdFirst_Click()
    clsm.g_DBRct.MoveFirst
    Call ShowData
End Sub
Private Sub CmdLast_Click()
    clsm.g_DBRct.MoveLast
    Call ShowData
End Sub
Private Sub Cmdremove_Click()
    If MsgBox("确实要删除该用户的信息吗?", vbQuestion + vbYesNo, "删除信息") = vbYes Then
        clsm.g_DBRct.Delete
        Call CmdNext_Click
    End If
End Sub
Private Sub Form_Load()
    Set clsm = New ClsMain
    If clsm.ConnectToServer() = False Then Unload Me
    If clsm.QueryEmpInfo("select * from UserValidate") = True Then
        If clsm.g_DBRct.BOF = False And clsm.g_DBRct.EOF = False Then
            Call ShowData
        End If
    End If
End Sub
Public Sub ShowData()
    If clsm.g_DBRct.BOF = False And clsm.g_DBRct.EOF = False Then
        TxtName.Text = clsm.g_DBRct!username
    End If
End Sub

⌨️ 快捷键说明

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