?? frmreturn.frm
字號:
VERSION 5.00
Begin VB.Form FrmReturn
BorderStyle = 1 'Fixed Single
Caption = "圖書歸還"
ClientHeight = 2055
ClientLeft = 45
ClientTop = 360
ClientWidth = 4320
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 2055
ScaleWidth = 4320
Begin VB.TextBox TextRtBkNum
Height = 375
Left = 1560
MultiLine = -1 'True
TabIndex = 2
Top = 1080
Width = 2655
End
Begin VB.CommandButton CmdReturn
Caption = "確定"
Height = 375
Left = 1680
TabIndex = 1
Top = 1560
Width = 1095
End
Begin VB.CommandButton CmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 3120
TabIndex = 0
Top = 1560
Width = 1095
End
Begin VB.Label Label1
Caption = "請手動輸入或通過讀卡器讀入需要歸還的圖書號:"
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 = 360
TabIndex = 4
Top = 240
Width = 3495
End
Begin VB.Label Label2
Caption = "圖書號:"
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 = 360
TabIndex = 3
Top = 1080
Width = 1455
End
End
Attribute VB_Name = "FrmReturn"
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 CmdReturn_Click()
Dim str As String
'檢驗輸入內容
If Len(Trim(Me.TextRtBkNum.Text)) <= 0 Then
MsgBox "請輸入圖書號!"
Exit Sub
ElseIf Len(Trim(Me.TextRtBkNum.Text)) > 8 Then
MsgBox "您輸入的書號過長!"
Exit Sub
ElseIf Val(Me.TextRtBkNum.Text) = 0 Then
MsgBox "書號必須為整數且不能為0!"
Exit Sub
End If
'生成要發送的數據 = Return, Rec_BkNum
str = "Return," & Trim(Me.TextRtBkNum.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 + -