?? frmdeluser.frm
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -