frmdeluser.frm
来自「VB类实现学生信息管理系统」· FRM 代码 · 共 66 行
FRM
66 行
VERSION 5.00
Begin VB.Form frmdeluser
Caption = "用户删除"
ClientHeight = 2505
ClientLeft = 60
ClientTop = 345
ClientWidth = 3930
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 2505
ScaleWidth = 3930
Begin VB.CommandButton cmdok
Caption = "ok"
Height = 375
Left = 1560
TabIndex = 2
Top = 1560
Width = 855
End
Begin VB.TextBox txt_user
Height = 375
Left = 1800
TabIndex = 1
Top = 240
Width = 1695
End
Begin VB.Label Label1
Caption = "用户名"
Height = 375
Left = 240
TabIndex = 0
Top = 240
Width = 1215
End
End
Attribute VB_Name = "frmdeluser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdok_Click()
Dim del_user As user
If Trim(txt_user.Text) = "" Then
MsgBox "请输入用户名称!", vbOKOnly + vbExclamation, "警告"
Exit Sub
txt_user.SetFocus
Else
Set del_user = New user
del_user.user_Id = Trim(txt_user.Text)
del_user.Delete
If InStr(del_user.oper_flag, "ok") > 0 Then
Me.Hide
MsgBox "删除用户成功!", vbOKOnly + vbExclamation, "删除用户"
Else
MsgBox "删除用户失败!", vbOKOnly + vbExclamation, "删除用户"
End If
End If
Set del_user = Nothing
Unload Me
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?