?? frmrdrdel.frm
字號:
VERSION 5.00
Begin VB.Form FrmRdrDel
BorderStyle = 1 'Fixed Single
Caption = "刪除讀者信息"
ClientHeight = 1935
ClientLeft = 45
ClientTop = 360
ClientWidth = 3840
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 1935
ScaleWidth = 3840
Begin VB.CommandButton CmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 2520
TabIndex = 3
Top = 1440
Width = 1095
End
Begin VB.CommandButton CmdDel
Caption = "刪除"
Height = 375
Left = 1320
TabIndex = 2
Top = 1440
Width = 1095
End
Begin VB.TextBox TextID
Height = 375
Left = 1320
TabIndex = 0
Top = 840
Width = 2295
End
Begin VB.Label Label2
Caption = "請手動輸入或通過讀卡器讀入要刪除的讀者ID:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 615
Left = 120
TabIndex = 4
Top = 120
Width = 3375
End
Begin VB.Label Label1
Caption = "讀者ID:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 240
TabIndex = 1
Top = 840
Width = 1215
End
End
Attribute VB_Name = "FrmRdrDel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdCancel_Click() '取消
Unload Me
End Sub
'刪除讀者
Private Sub CmdDel_Click()
Dim str As String
'檢驗輸入內容
If Len(Trim(Me.TextID.Text)) <= 0 Then
MsgBox "請輸入讀者ID!"
Exit Sub
ElseIf Len(Trim(Me.TextID.Text)) > 16 Then
MsgBox "您輸入的用戶ID過長!"
Exit Sub
End If
'生成要發送的數據 = Rdr,02,Rdr_ID
str = "Rdr," & "02," & Me.TextID.Text
'檢驗sock連接并向服務器發送數據
If MDIFrm.SockToSvr.State <> sckConnected Then
MsgBox "還沒有連接數據庫,不能發送請求!"
Exit Sub
End If
MDIFrm.SockToSvr.SendData str
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -