📄 frmclassedit.frm
字号:
VERSION 5.00
Begin VB.Form FrmClassEdit
Caption = "修改"
ClientHeight = 3375
ClientLeft = 60
ClientTop = 450
ClientWidth = 6360
LinkTopic = "Form1"
ScaleHeight = 3375
ScaleWidth = 6360
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox txtClass_Name
Height = 495
Left = 600
TabIndex = 3
Top = 1080
Width = 1335
End
Begin VB.TextBox txtUpper_ID
Height = 495
Left = 3000
TabIndex = 2
Top = 1080
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "修改"
Height = 495
Left = 600
TabIndex = 1
Top = 2040
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "退出"
Height = 495
Left = 3000
TabIndex = 0
Top = 2040
Width = 1215
End
Begin VB.Label Label2
Caption = "院系名称"
Height = 375
Left = 720
TabIndex = 5
Top = 360
Width = 975
End
Begin VB.Label Label3
Caption = "院系代码"
Height = 375
Left = 3120
TabIndex = 4
Top = 360
Width = 855
End
End
Attribute VB_Name = "FrmClassEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriClass_Id As Integer
Private Sub Command1_Click()
If Trim(txtClass_Name) = "" Then
MsgBox "请输入院系名称"
txtClass_Name.SetFocus
Exit Sub
End If
If Trim(txtUpper_ID) = "" Then
MsgBox "请输入txtUpper_ID号"
txtUpper_ID.SetFocus
Exit Sub
End If
OriClass_Id = FrmClassesMan.Adodc1.Recordset.Fields(0)
With MyClass
.Class_Name = MakeStr(txtClass_Name)
.UpperId = MakeStr(txtUpper_ID)
.Update (OriClass_Id)
End With
MsgBox ("数据已保存")
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
FrmClassesMan.Adodc1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -