📄 frmclassesadd.frm
字号:
VERSION 5.00
Begin VB.Form FrmClassesAdd
Caption = "添加"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 5055
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 5055
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "退出"
Height = 495
Left = 3360
TabIndex = 6
Top = 2280
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "重置"
Height = 495
Left = 1920
TabIndex = 5
Top = 2280
Width = 975
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 495
Left = 240
TabIndex = 4
Top = 2280
Width = 1215
End
Begin VB.TextBox txtUpper_ID
Height = 495
Left = 3000
TabIndex = 1
Top = 1320
Width = 855
End
Begin VB.TextBox txtClass_Name
Height = 495
Left = 600
TabIndex = 0
Top = 1320
Width = 1335
End
Begin VB.Label Label3
Caption = "院系代码"
Height = 375
Left = 3000
TabIndex = 3
Top = 600
Width = 855
End
Begin VB.Label Label2
Caption = "院系名称"
Height = 375
Left = 720
TabIndex = 2
Top = 600
Width = 975
End
End
Attribute VB_Name = "FrmClassesAdd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
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
With MyClass
.Class_Name = MakeStr(txtClass_Name)
.UpperId = MakeStr(txtUpper_ID)
.Insert
Call .Update(OriClass_Id)
End With
MsgBox ("数据已保存")
Unload Me
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
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 + -