?? frmrdradd.frm
字號:
VERSION 5.00
Begin VB.Form FrmRdrAdd
BorderStyle = 1 'Fixed Single
Caption = "添加讀者"
ClientHeight = 2610
ClientLeft = 5700
ClientTop = 4620
ClientWidth = 3885
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 2610
ScaleWidth = 3885
Begin VB.TextBox TextName
Height = 375
Left = 1440
TabIndex = 7
Top = 1680
Width = 2055
End
Begin VB.CommandButton CmdAdd
Caption = "添加"
Height = 375
Left = 1200
TabIndex = 5
Top = 2160
Width = 1095
End
Begin VB.CommandButton CmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 2520
TabIndex = 4
Top = 2160
Width = 1095
End
Begin VB.TextBox TextID
Height = 375
Left = 1440
TabIndex = 1
Top = 720
Width = 2055
End
Begin VB.ComboBox CbType
Height = 300
ItemData = "FrmRdrAdd.frx":0000
Left = 1440
List = "FrmRdrAdd.frx":000D
Style = 2 'Dropdown List
TabIndex = 0
Top = 1245
Width = 2055
End
Begin VB.Label Label4
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 = 120
TabIndex = 8
Top = 120
Width = 3615
End
Begin VB.Label Label3
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 = 120
TabIndex = 6
Top = 1680
Width = 1455
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 = 120
TabIndex = 3
Top = 1200
Width = 1455
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 = 360
TabIndex = 2
Top = 720
Width = 1215
End
End
Attribute VB_Name = "FrmRdrAdd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'添加讀者
Private Sub CmdAdd_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
If Len(Trim(Me.TextName.Text)) <= 0 Then
MsgBox "請輸入讀者姓名!"
Exit Sub
ElseIf Len(Trim(Me.TextName.Text)) > 4 Then
MsgBox "您輸入的姓名過長!"
Exit Sub
End If
'生成要發送的數據 = Rdr,01,Rdr_ID,Rdr_Name,Rdr_Type
str = "Rdr," & "01," & Me.TextID.Text & ","
str = str & Me.TextName.Text & ","
str = str & Val(Me.CbType.Text)
'檢驗sock連接并向服務器發送數據
If MDIFrm.SockToSvr.State <> sckConnected Then
MsgBox "還沒有連接數據庫,不能發送請求!"
Exit Sub
End If
MDIFrm.SockToSvr.SendData str
Unload Me
End Sub
Private Sub CmdCancel_Click() '取消
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -