pexam13_1.frm

来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 191 行

FRM
191
字号
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form1 
   Caption         =   "学生基本信息"
   ClientHeight    =   2325
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3690
   LinkTopic       =   "Form1"
   ScaleHeight     =   2325
   ScaleWidth      =   3690
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   720
      Top             =   1920
      Visible         =   0   'False
      Width           =   2295
      _ExtentX        =   4048
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\13\学生.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\13\学生.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "学生基本信息"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   375
      Left            =   2520
      TabIndex        =   10
      Top             =   1440
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "下一个"
      Height          =   375
      Left            =   1440
      TabIndex        =   9
      Top             =   1440
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "上一个"
      Height          =   375
      Left            =   360
      TabIndex        =   8
      Top             =   1440
      Width           =   975
   End
   Begin VB.TextBox Text4 
      DataField       =   "性别"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2400
      Locked          =   -1  'True
      TabIndex        =   7
      Top             =   720
      Width           =   1095
   End
   Begin VB.TextBox Text3 
      DataField       =   "姓名"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   720
      Locked          =   -1  'True
      TabIndex        =   6
      Top             =   720
      Width           =   975
   End
   Begin VB.TextBox Text2 
      DataField       =   "学号"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2400
      Locked          =   -1  'True
      TabIndex        =   3
      Top             =   120
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      DataField       =   "班级"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   720
      Locked          =   -1  'True
      TabIndex        =   1
      Top             =   120
      Width           =   975
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "性 别:"
      Height          =   180
      Left            =   1800
      TabIndex        =   5
      Top             =   840
      Width           =   630
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "姓 名:"
      Height          =   180
      Left            =   120
      TabIndex        =   4
      Top             =   840
      Width           =   630
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "学 号:"
      Height          =   180
      Left            =   1800
      TabIndex        =   2
      Top             =   240
      Width           =   630
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "班 级:"
      Height          =   180
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   630
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Command2.Enabled = True
  If Adodc1.Recordset.BOF Then
    Command1.Enabled = False
    Command2.SetFocus
  Else
    Adodc1.Recordset.MovePrevious
  End If
End Sub

Private Sub Command2_Click()
  Command1.Enabled = True
  If Adodc1.Recordset.EOF Then
    Command2.Enabled = False
    Command1.SetFocus
  Else
    Adodc1.Recordset.MoveNext
  End If
End Sub

Private Sub Command3_Click()
  End
End Sub


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?