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

📄 form2.frm

📁 一个勘察用的小软件,和华宁配套用. 一个勘察用的小软件,和华宁配套用.
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "Excel.Sheet.8"; "EXCEL.EXE"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form form2 
   Caption         =   "n120"
   ClientHeight    =   9495
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   11880
   LinkTopic       =   "Form2"
   ScaleHeight     =   9495
   ScaleWidth      =   11880
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox 工程目录 
      Height          =   375
      Left            =   7080
      TabIndex        =   19
      Top             =   7440
      Visible         =   0   'False
      Width           =   735
   End
   Begin VB.Frame Frame4 
      Caption         =   "使用的勘察规范"
      Height          =   1095
      Left            =   10080
      TabIndex        =   17
      Top             =   3240
      Width           =   1700
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "Form2.frx":0000
         Left            =   120
         List            =   "Form2.frx":000A
         TabIndex        =   18
         Text            =   "Combo1"
         Top             =   360
         Width           =   1455
      End
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   4800
      TabIndex        =   11
      Top             =   8640
      Width           =   975
   End
   Begin VB.CommandButton Command4 
      Caption         =   "插入一行"
      Height          =   495
      Left            =   10440
      TabIndex        =   10
      Top             =   2520
      Width           =   1095
   End
   Begin VB.CommandButton Command3 
      Caption         =   "删除一行"
      Height          =   495
      Left            =   10440
      TabIndex        =   9
      Top             =   1920
      Width           =   1095
   End
   Begin VB.Frame Frame3 
      Caption         =   "钻孔分层"
      Height          =   5415
      Left            =   6840
      TabIndex        =   5
      Top             =   1800
      Width           =   3135
      Begin VB.TextBox Text2 
         ForeColor       =   &H80000006&
         Height          =   300
         Left            =   720
         TabIndex        =   7
         Top             =   600
         Visible         =   0   'False
         Width           =   950
      End
      Begin MSFlexGridLib.MSFlexGrid Grid1 
         Height          =   5175
         Left            =   120
         TabIndex        =   6
         Top             =   200
         Width           =   2895
         _ExtentX        =   5106
         _ExtentY        =   9128
         _Version        =   393216
         Rows            =   20
         Cols            =   3
         RowHeightMin    =   300
         AllowBigSelection=   0   'False
         TextStyle       =   3
         GridLines       =   2
         ScrollBars      =   2
         FormatString    =   "序号"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "读 取"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   10800
      TabIndex        =   4
      Top             =   480
      Width           =   855
   End
   Begin VB.Frame 钻孔号 
      Caption         =   "钻孔号"
      Height          =   1335
      Left            =   6840
      TabIndex        =   1
      Top             =   240
      Width           =   4935
      Begin VB.CommandButton Command2 
         Caption         =   "保 存"
         Height          =   375
         Left            =   3960
         TabIndex        =   8
         Top             =   840
         Width           =   855
      End
      Begin VB.TextBox 钻孔号t 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   390
         Left            =   1440
         TabIndex        =   3
         Top             =   480
         Width           =   1815
      End
      Begin VB.Label 钻孔号w 
         Caption         =   "输入钻孔号:"
         Height          =   255
         Left            =   240
         TabIndex        =   2
         Top             =   600
         Width           =   1095
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "N120曲线图"
      Height          =   9000
      Left            =   30
      TabIndex        =   0
      Top             =   200
      Width           =   6600
      Begin VB.PictureBox Pic 
         AutoRedraw      =   -1  'True
         BorderStyle     =   0  'None
         Height          =   9000
         Left            =   120
         ScaleHeight     =   9000
         ScaleWidth      =   6285
         TabIndex        =   14
         Top             =   240
         Width           =   6280
         Begin VB.PictureBox Picture1 
            AutoRedraw      =   -1  'True
            BorderStyle     =   0  'None
            Height          =   9000
            Left            =   0
            ScaleHeight     =   9000
            ScaleWidth      =   6285
            TabIndex        =   16
            Top             =   1680
            Width           =   6280
            Begin VB.Line Line1 
               Visible         =   0   'False
               X1              =   -100
               X2              =   7000
               Y1              =   3360
               Y2              =   3360
            End
         End
         Begin VB.VScrollBar VScroll1 
            Height          =   1695
            Left            =   5880
            Max             =   10500
            TabIndex        =   15
            Top             =   240
            Width           =   260
         End
      End
   End
   Begin RichTextLib.RichTextBox Rich1 
      Height          =   6615
      Left            =   360
      TabIndex        =   13
      Top             =   1080
      Visible         =   0   'False
      Width           =   6255
      _ExtentX        =   11033
      _ExtentY        =   11668
      _Version        =   393217
      ScrollBars      =   2
      TextRTF         =   $"Form2.frx":003C
   End
   Begin ExcelCtl.Sheet Sheet1 
      Height          =   6870
      Left            =   720
      OleObjectBlob   =   "Form2.frx":00D9
      TabIndex        =   12
      Top             =   840
      Visible         =   0   'False
      Width           =   5490
   End
End
Attribute VB_Name = "form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const ASC_ENTER = 13         '回车
Dim gRow     As Integer
Dim gCol     As Integer
Dim qd, zd

Dim n120文件 As String, 华宁编号 As String, dcsj文件 As String
Dim xzxs As Variant

Private Sub Command2_Click()
sh = 保存数据(dcsj文件, 工程目录.Text, Grid1, 钻孔号t.Text)
MsgBox "保存成功", , "保存地层数据"
End Sub

Private Sub Command3_Click()
Grid1.TextMatrix(Grid1.Row, 1) = ""
Grid1.TextMatrix(Grid1.Row, 2) = ""
End Sub

Private Sub Command4_Click()
Dim i, t1, t2, n
i = 19
n = Grid1.Row

Do While Grid1.TextMatrix(i, 1) = "" And Grid1.TextMatrix(i, 2) = ""
i = i - 1
If i = n Then
Exit Do
End If
Loop

If i = 19 Then
Exit Sub
End If

For n = i To Grid1.Row Step -1
Grid1.TextMatrix(n + 1, 1) = Grid1.TextMatrix(n, 1)
Grid1.TextMatrix(n + 1, 2) = Grid1.TextMatrix(n, 2)
Next n

Grid1.TextMatrix(Grid1.Row, 1) = ""
Grid1.TextMatrix(Grid1.Row, 2) = ""
End Sub



Private Sub Form_Load()
Set xzxs = Sheet1.object
form2.Height = 10000
form2.Width = 12000
Grid1.TextMatrix(0, 1) = "分层编号"
Grid1.TextMatrix(0, 2) = "层底深度"
For i = 1 To 19
Grid1.TextMatrix(i, 0) = i

⌨️ 快捷键说明

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