⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sportorform.frm

📁 运动会管理系统 运动会管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form sportorForm 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "选手列表"
   ClientHeight    =   6615
   ClientLeft      =   45
   ClientTop       =   405
   ClientWidth     =   8325
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   6615
   ScaleWidth      =   8325
   Begin VB.Frame Frame1 
      Caption         =   "选手列表"
      Height          =   6375
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   8055
      Begin MSFlexGridLib.MSFlexGrid MSF 
         Height          =   6015
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   7815
         _ExtentX        =   13785
         _ExtentY        =   10610
         _Version        =   393216
      End
   End
End
Attribute VB_Name = "sportorForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub classshowtitle()
 Dim i As Integer
 MSF.Clear
  With MSF
    .Cols = 6
    .TextMatrix(0, 1) = "学号"
    .TextMatrix(0, 2) = "学生姓名"
    .TextMatrix(0, 3) = "性别"
    .TextMatrix(0, 4) = "年龄"
    .TextMatrix(0, 5) = "班级"
    .ColWidth(0) = 100
    .ColWidth(1) = 1300
    .ColWidth(2) = 1200
    .ColWidth(3) = 1200
    .ColWidth(4) = 1500
    .ColWidth(5) = 1500
    .FixedRows = 1
    For i = 1 To 5
      .ColAlignment(i) = 0
    Next i
    .FillStyle = flexFillSingle
    .Col = 0
    .Row = 0
    .RowSel = 1
    .ColSel = .Cols - 1
    .CellAlignment = 4
    .Row = 1
    End With
End Sub

Public Sub classshowdata()
Dim j As Integer
Dim i As Integer

Dim mrc1 As ADODB.Recordset
  strSql = "select student_info_no,student_info_name,student_info_sex,student_info_age,class_info_name from sportor_info_view"
  Set mrc1 = ExecuteSQL(Trim(strSql))
  If mrc1.EOF = False Then
   mrc1.MoveFirst
   With MSF
    .Rows = 1
    Do While Not mrc1.EOF
     .Rows = .Rows + 1
     For i = 1 To mrc1.Fields.Count
      .TextMatrix(.Rows - 1, i) = mrc1.Fields(i - 1)
     Next i
     mrc1.MoveNext
    Loop
    mrc1.Close
 End With
 End If
End Sub

⌨️ 快捷键说明

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