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

📄 frm_bakdatabase.frm

📁 提供给入门级别的GPRS编程人员
💻 FRM
字号:
VERSION 5.00
Object = "{9FAB393B-C726-49E3-8FD0-27AEDCF2A6AE}#5.0#0"; "XP相关组件.ocx"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Object = "{2B12169D-6738-11D2-BF5B-00A024982E5B}#31.8#0"; "CoolButton.OCX"
Begin VB.Form frm_bakdatabase 
   BackColor       =   &H00FFC0C0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "GPRS用电管理系统"
   ClientHeight    =   1485
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5160
   Icon            =   "frm_bakdatabase.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1485
   ScaleWidth      =   5160
   StartUpPosition =   1  '所有者中心
   Begin VB.Frame Frame1 
      Caption         =   "数据备份"
      ForeColor       =   &H00FF0000&
      Height          =   1500
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   5115
      Begin TButton.axButton xpcmdbutton2 
         Height          =   330
         Left            =   2760
         TabIndex        =   7
         Top             =   1080
         Width           =   1005
         _ExtentX        =   1773
         _ExtentY        =   582
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Caption         =   "备  份"
         MaskColor       =   -2147483633
      End
      Begin TButton.axButton xpcmdbutton3 
         Height          =   330
         Left            =   3960
         TabIndex        =   6
         Top             =   1080
         Width           =   1005
         _ExtentX        =   1773
         _ExtentY        =   582
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Caption         =   "退  出"
         MaskColor       =   -2147483633
      End
      Begin TButton.axButton xpcmdbutton1 
         Height          =   330
         Left            =   3960
         TabIndex        =   5
         Top             =   600
         Width           =   1005
         _ExtentX        =   1773
         _ExtentY        =   582
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Caption         =   "浏  览"
         MaskColor       =   -2147483633
      End
      Begin VB.TextBox txt_fname 
         Appearance      =   0  'Flat
         Height          =   330
         Left            =   240
         TabIndex        =   0
         Top             =   600
         Width           =   3550
      End
      Begin Windows_XP.xpcmdbutton xpcmdbutton31 
         Height          =   375
         Left            =   2520
         TabIndex        =   2
         Top             =   1800
         Visible         =   0   'False
         Width           =   855
         _ExtentX        =   1508
         _ExtentY        =   661
         Caption         =   "退出"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin Windows_XP.xpcmdbutton xpcmdbutton21 
         Height          =   375
         Left            =   840
         TabIndex        =   3
         Top             =   1680
         Visible         =   0   'False
         Width           =   975
         _ExtentX        =   1720
         _ExtentY        =   661
         Caption         =   "备份"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "请选择备份路径:"
         Height          =   255
         Left            =   240
         TabIndex        =   4
         Top             =   360
         Width           =   1455
      End
   End
   Begin MSComDlg.CommonDialog dog 
      Left            =   4200
      Top             =   2400
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
End
Attribute VB_Name = "frm_bakdatabase"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    txt_fname.Text = App.Path & "\databasebak\gprspc.bak"
End Sub

Private Sub xpcmdbutton1_Click() '浏览
    dog.Filter = "备份文件(*.bak)|*.bak"
    dog.ShowSave
    txt_fname.Text = dog.FileName
    If dog.FileName = "" Then
        txt_fname.Text = App.Path & "\databasebak\gprspc.bak"
    End If
End Sub

Private Sub xpcmdbutton2_Click() '备份
    Dim returnmsg As String
    If Trim(txt_fname.Text) = "" Then
        MsgBox ("存储路径不能为空!"), vbOKOnly + vbInformation, "提示"
        Exit Sub
    End If
    returnmsg = fBackupDatabase_a(Trim(txt_fname.Text), "gprspc", False)
    If returnmsg = "" Then
        MsgBox ("备份成功!"), vbOKOnly + vbInformation, "提示"
        Exit Sub
    Else
        MsgBox (returnmsg), vbOKOnly + vbInformation, "提示"
        Exit Sub
    End If
End Sub

Private Sub xpcmdbutton3_Click()
    Unload Me
End Sub

⌨️ 快捷键说明

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