pexam13_61.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 179 行
FRM
179 行
VERSION 5.00
Begin VB.Form Form3
Caption = "专业表维护"
ClientHeight = 2100
ClientLeft = 60
ClientTop = 345
ClientWidth = 4875
LinkTopic = "Form3"
ScaleHeight = 2100
ScaleWidth = 4875
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "添加"
Height = 495
Left = 2160
TabIndex = 12
Top = 1440
Width = 600
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 495
Left = 2760
TabIndex = 11
Top = 1440
Width = 600
End
Begin VB.CommandButton Command3
Caption = "更新"
Height = 495
Left = 3360
TabIndex = 10
Top = 1440
Width = 600
End
Begin VB.CommandButton Command4
Caption = "关闭"
Height = 495
Left = 3960
TabIndex = 9
Top = 1440
Width = 600
End
Begin VB.CommandButton Command5
Caption = "|<"
Height = 495
Left = 120
TabIndex = 8
Top = 1440
Width = 500
End
Begin VB.CommandButton Command6
Caption = "<"
Height = 495
Left = 600
TabIndex = 7
Top = 1440
Width = 500
End
Begin VB.CommandButton Command7
Caption = ">"
Height = 495
Left = 1080
TabIndex = 6
Top = 1440
Width = 500
End
Begin VB.CommandButton Command8
Caption = ">|"
Height = 495
Left = 1560
TabIndex = 5
Top = 1440
Width = 500
End
Begin VB.PictureBox Picture1
Height = 1215
Left = 120
ScaleHeight = 1155
ScaleWidth = 4515
TabIndex = 0
Top = 120
Width = 4575
Begin VB.TextBox Text2
Height = 375
Left = 3240
TabIndex = 13
Top = 120
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 1080
TabIndex = 2
Top = 120
Width = 975
End
Begin VB.TextBox Text3
Height = 375
Left = 1080
TabIndex = 1
Top = 600
Width = 3375
End
Begin VB.Label Label1
Caption = "系 编 号:"
Height = 255
Left = 2160
TabIndex = 14
Top = 240
Width = 975
End
Begin VB.Label Label3
Caption = "专业编号:"
Height = 255
Left = 120
TabIndex = 4
Top = 240
Width = 975
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "专业名称:"
Height = 180
Index = 2
Left = 120
TabIndex = 3
Top = 720
Width = 900
End
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form1.Adodc1.Recordset.AddNew
End Sub
Private Sub Command2_Click()
Form1.Adodc1.Recordset.Delete
Form1.Adodc1.Recordset.MoveNext
End Sub
Private Sub Command3_Click()
Form1.Adodc1.Recordset.Update
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Command5_Click()
Form1.Adodc1.Recordset.MoveFirst
End Sub
Private Sub Command6_Click()
If Not Form1.Adodc1.Recordset.BOF Then
Form1.Adodc1.Recordset.MovePrevious
End If
End Sub
Private Sub Command7_Click()
If Not Form1.Adodc1.Recordset.EOF Then
Form1.Adodc1.Recordset.MoveNext
End If
End Sub
Private Sub Command8_Click()
Form1.Adodc1.Recordset.MoveLast
End Sub
Private Sub Form_Activate()
Form1.Adodc1.RecordSource = tabstring
Form1.Adodc1.Refresh
Set Text1.DataSource = Form1.Adodc1
Text1.DataField = "专业编号"
Set Text2.DataSource = Form1.Adodc1
Text2.DataField = "系编号"
Set Text3.DataSource = Form1.Adodc1
Text3.DataField = "专业名称"
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?