?? frmtypeedit.frm
字號:
VERSION 5.00
Begin VB.Form FrmTypeEdit
BorderStyle = 1 'Fixed Single
Caption = "編輯分類信息"
ClientHeight = 3390
ClientLeft = 45
ClientTop = 330
ClientWidth = 4815
Icon = "FrmTypeEdit.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3390
ScaleWidth = 4815
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Cancel
Cancel = -1 'True
Caption = "取 消"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 400
Left = 2493
MouseIcon = "FrmTypeEdit.frx":08CA
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 3
Top = 2640
Width = 1300
End
Begin VB.CommandButton Cmd_Ok
Caption = "確 定"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 400
Left = 888
MouseIcon = "FrmTypeEdit.frx":0BD4
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 2
Top = 2640
Width = 1300
End
Begin VB.Frame Frame1
BackColor = &H80000005&
Height = 2295
Left = 240
TabIndex = 4
Top = 120
Width = 4215
Begin VB.TextBox txtDescribe
Height = 855
Left = 1080
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 1
Top = 1320
Width = 2895
End
Begin VB.TextBox txtType
Height = 270
Left = 1080
MaxLength = 20
TabIndex = 0
Top = 795
Width = 2895
End
Begin VB.Label Label3
AutoSize = -1 'True
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "具體描述"
Height = 180
Left = 120
TabIndex = 8
Top = 1320
Width = 720
End
Begin VB.Label lblTypeId
AutoSize = -1 'True
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "lblTypeId"
Height = 180
Left = 1080
TabIndex = 7
Top = 360
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "所屬分類"
Height = 180
Left = 120
TabIndex = 6
Top = 360
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "分類名稱"
Height = 180
Left = 120
TabIndex = 5
Top = 840
Width = 720
End
End
End
Attribute VB_Name = "FrmTypeEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public nTid As Integer
Public nId As Integer
Public sTName As String
Private Sub Cmd_OK_Click()
If Trim(txtType) = "" Then
MsgBox "請輸入分類名稱"
Exit Sub
End If
With MyType
.TypeName = MakeStr(txtType)
.Description = MakeStr(txtDescribe)
.TypeId = nTid
If Modify = False Then
If .In_DB(.TypeName, nTid) = True Then
MsgBox Trim(txtType) + " 已經存在"
Exit Sub
End If
.Insert
Else
If Trim(sTName) <> MakeStr(txtType) Then
If .In_DB(Trim(txtType), nTid) = True Then
MsgBox Trim(txtType) + " 已經存在"
Exit Sub
End If
End If
.Update (nId)
End If
MsgBox "成功", vbInformation
End With
FrmType.Adodc1.RecordSource = "SELECT * FROM Types WHERE TypeId=" + Trim(nTid)
FrmType.Adodc1.Refresh
FrmType.DataList1.ReFill
Unload Me
End Sub
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -