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

📄 数据文件_编辑f3.frm

📁 一个可以在文本中编辑数据库内容的源代码。
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmFile 
   Appearance      =   0  'Flat
   BackColor       =   &H80000005&
   Caption         =   "路径和文件名"
   ClientHeight    =   1875
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6825
   LinkTopic       =   "Form1"
   ScaleHeight     =   1875
   ScaleWidth      =   6825
   StartUpPosition =   3  '窗口缺省
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   0
      Top             =   0
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   "结束"
      Height          =   375
      Left            =   3360
      TabIndex        =   3
      ToolTipText     =   "单击后结束程序运行"
      Top             =   1200
      Width           =   975
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Height          =   375
      Left            =   2160
      TabIndex        =   2
      ToolTipText     =   "单击后继续进行"
      Top             =   1200
      Width           =   975
   End
   Begin VB.TextBox txtFileName 
      Alignment       =   2  'Center
      Height          =   375
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   6615
   End
   Begin VB.Label Label4 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "数据文件全名"
      ForeColor       =   &H80000008&
      Height          =   255
      Left            =   2280
      TabIndex        =   0
      Top             =   240
      Width           =   2175
   End
End
Attribute VB_Name = "frmFile"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'利用公共对话框提供数据文件名
'设定为启动模块
Option Explicit
Private Sub Form_Load()
    With CommonDialog1
        .DefaultExt = ".dat"            '缺省的文件扩展名
        .Filter = "所有文件(*.*)|*.*|数据文件(*.dat)|*.dat"
        .FilterIndex = 2                '缺省的过滤器为第2个即“数据文件”
'设置“不显示在对话框下方的只读复选框”和“拒绝选择只读文件或有写保护的文件
        .Flags = cdlOFNHideReadOnly Or cdlOFNNoReadOnlyReturn
    End With
    CommonDialog1.ShowOpen              '显示公共对话框
'由公共对话框取得文件名
    txtFileName.Text = CommonDialog1.FileName
End Sub

'确定
Private Sub cmdOK_Click()
    strFileName = txtFileName.Text
    Unload Me
    frmDisplayRowCol.Visible = True
End Sub

'退出
Private Sub cmdExit_Click()
    Unload Me
    End
End Sub



⌨️ 快捷键说明

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