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

📄 bzform.frm

📁 某机械工程学院的毕业设计以及毕业论文 非常参考价值
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form bzForm 
   BackColor       =   &H00C0FFFF&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "选择默认编组"
   ClientHeight    =   8655
   ClientLeft      =   45
   ClientTop       =   1440
   ClientWidth     =   13020
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   8655
   ScaleWidth      =   13020
   ShowInTaskbar   =   0   'False
   Begin VB.Frame Frame2 
      BackColor       =   &H00FFFFC0&
      Caption         =   "编组预览"
      Height          =   6855
      Left            =   4170
      TabIndex        =   5
      Top             =   150
      Width           =   8805
      Begin MSFlexGridLib.MSFlexGrid Grid1 
         Height          =   6555
         Left            =   60
         TabIndex        =   6
         Top             =   240
         Width           =   8655
         _ExtentX        =   15266
         _ExtentY        =   11562
         _Version        =   393216
         Rows            =   16
         Cols            =   16
         BackColorFixed  =   12640511
         BackColorBkg    =   12648447
         Enabled         =   -1  'True
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "选择文件名"
      Height          =   6855
      Left            =   90
      TabIndex        =   2
      Top             =   150
      Width           =   4065
      Begin VB.FileListBox Flist 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   21.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   5310
         Left            =   390
         TabIndex        =   4
         Top             =   1230
         Width           =   3345
      End
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   21.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   645
         Left            =   390
         Locked          =   -1  'True
         TabIndex        =   3
         Top             =   390
         Width           =   3315
      End
   End
   Begin VB.CommandButton Ccancel 
      Caption         =   "取  消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   7980
      TabIndex        =   1
      Top             =   7560
      Width           =   1635
   End
   Begin VB.CommandButton Csure 
      Caption         =   "确  定"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   4140
      TabIndex        =   0
      Top             =   7560
      Width           =   1635
   End
End
Attribute VB_Name = "bzForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Form_Load()
  Flist.Path = App.Path & "\bz"
  Call tabinit1
End Sub

Public Sub tabinit1()
  Grid1.Cols = 16
  Grid1.Rows = 51
  Grid1.Col = 0
  Grid1.Row = 0
  Grid1.ColWidth(0) = 900
  Grid1.Text = "轮灌组"
  For j = 1 To 50
    Grid1.Row = j
    Grid1.Text = "第" + Str$(j) + "组"
  Next j
  Grid1.Row = 0
  For i = 1 To 15
    Grid1.Col = i
    Grid1.Text = " " + Str$(i)
    Grid1.ColWidth(i) = 700
  Next i
  For j = 0 To 50
    Grid1.RowHeight(j) = 650
  Next j
End Sub

Private Sub Flist_Click()
  Text1.Text = Flist.FileName
  Csure.Enabled = True
  fname = App.Path & "\bz\" & Text1.Text
  Call open_bzfile
End Sub

Sub open_bzfile()
  Dim datastring(2000) As String
  Dim opendatafile(200, 20) As String
  Dim l As Long
  Dim a As String, b As String, X As String
  Dim n As Integer
  On Error GoTo hh

  F1% = FreeFile
  Close
  Open fname For Input As #F1%
  Do While Not EOF(F1%)
    Line Input #F1%, a
    l = Len(a)
    b = ""
    For i = 1 To l
      X = Mid$(a, i, 1)
      If Asc(X) > 31 Then b = b + X
    Next i
    datastring(n) = b
    n = n + 1
  Loop
  Close #F1%

      For i = 0 To n - 1
        opendatafile(i, 0) = Mid$(datastring(i), 1, 14)
        opendatafile(i, 1) = Mid$(datastring(i), 15, 14)
        opendatafile(i, 2) = Mid$(datastring(i), 29, 14)
        opendatafile(i, 3) = Mid$(datastring(i), 43, 14)
        opendatafile(i, 4) = Mid$(datastring(i), 57, 14)
        opendatafile(i, 5) = Mid$(datastring(i), 71, 14)
        opendatafile(i, 6) = Mid$(datastring(i), 85, 14)
        opendatafile(i, 7) = Mid$(datastring(i), 99, 14)
        opendatafile(i, 8) = Mid$(datastring(i), 113, 14)
        opendatafile(i, 9) = Mid$(datastring(i), 127, 14)
        opendatafile(i, 10) = Mid$(datastring(i), 141, 14)
        opendatafile(i, 11) = Mid$(datastring(i), 155, 14)
        opendatafile(i, 12) = Mid$(datastring(i), 169, 14)
        opendatafile(i, 13) = Mid$(datastring(i), 183, 14)
        opendatafile(i, 14) = Mid$(datastring(i), 197, 14)
        opendatafile(i, 15) = Mid$(datastring(i), 211, 14)
      Next i
  For j = 1 To 50
    Grid1.Row = j
    For i = 1 To 15
      Grid1.Col = i
      Grid1.Text = ""
    Next i
  Next j
  For i = 1 To 15
    Grid1.Col = i
    For j = 0 To n - 1
      Grid1.Row = j + 1
      Grid1.Text = Trim$(opendatafile(j, i))
    Next j
  Next i
hh: Exit Sub
End Sub


Private Sub Csure_Click()
  ch$ = Chr(13) + Chr(10)
  msg1$ = "你确信要重新设定新的编组吗?       "
  msg2$ = "它将覆盖原有的编组!"
  msg$ = msg1$ + ch$ + msg2$
  If commandbz = 10 Then
    Call TeamForm.open_file
    Unload Me
  End If
  If commandbz = 11 Then
    ppp = MsgBox(msg$, 65, "特别提示")
    If (ppp = 1) Then
      Call TeamForm.save_bz
      Unload Me
    End If
  End If
End Sub

Private Sub Ccancel_Click()
  Unload Me
End Sub

⌨️ 快捷键说明

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