pexam13_64.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 227 行
FRM
227 行
VERSION 5.00
Begin VB.Form Form4
Caption = "学生基本信息表维护"
ClientHeight = 2100
ClientLeft = 60
ClientTop = 345
ClientWidth = 4875
LinkTopic = "Form4"
ScaleHeight = 2100
ScaleWidth = 4875
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text6
Height = 350
Left = 3360
TabIndex = 19
Top = 1080
Width = 1335
End
Begin VB.TextBox Text5
Height = 350
Left = 1080
TabIndex = 17
Top = 1080
Width = 1335
End
Begin VB.TextBox Text4
Height = 350
Left = 3360
TabIndex = 15
Top = 600
Width = 1335
End
Begin VB.TextBox Text3
Height = 350
Left = 1080
TabIndex = 13
Top = 600
Width = 1335
End
Begin VB.TextBox Text2
Height = 350
Left = 3360
TabIndex = 11
Top = 120
Width = 1335
End
Begin VB.TextBox Text1
Height = 350
Left = 1080
TabIndex = 9
Top = 120
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 495
Left = 2280
TabIndex = 7
Top = 1560
Width = 600
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 495
Left = 2880
TabIndex = 6
Top = 1560
Width = 600
End
Begin VB.CommandButton Command3
Caption = "更新"
Height = 495
Left = 3480
TabIndex = 5
Top = 1560
Width = 600
End
Begin VB.CommandButton Command4
Caption = "关闭"
Height = 495
Left = 4080
TabIndex = 4
Top = 1560
Width = 600
End
Begin VB.CommandButton Command5
Caption = "|<"
Height = 495
Left = 240
TabIndex = 3
Top = 1560
Width = 500
End
Begin VB.CommandButton Command6
Caption = "<"
Height = 495
Left = 720
TabIndex = 2
Top = 1560
Width = 500
End
Begin VB.CommandButton Command7
Caption = ">"
Height = 495
Left = 1200
TabIndex = 1
Top = 1560
Width = 500
End
Begin VB.CommandButton Command8
Caption = ">|"
Height = 495
Left = 1680
TabIndex = 0
Top = 1560
Width = 500
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "出生日期:"
Height = 180
Left = 2520
TabIndex = 18
Top = 1155
Width = 900
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "性 别:"
Height = 180
Left = 240
TabIndex = 16
Top = 1155
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "姓 名:"
Height = 180
Left = 2520
TabIndex = 14
Top = 675
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "学 号:"
Height = 180
Left = 240
TabIndex = 12
Top = 675
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "班 级:"
Height = 180
Left = 2520
TabIndex = 10
Top = 195
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "专业编号:"
Height = 180
Left = 240
TabIndex = 8
Top = 240
Width = 900
End
End
Attribute VB_Name = "Form4"
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 = "学号"
Set Text4.DataSource = Form1.Adodc1
Text4.DataField = "姓名"
Set Text5.DataSource = Form1.Adodc1
Text5.DataField = "性别"
Set Text6.DataSource = Form1.Adodc1
Text6.DataField = "出生日期"
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?