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

📄 frmrdapush.ebf

📁 Windows CE 应用程序设计随书源码
💻 EBF
字号:
VERSION 5.00
Begin VB.Form frmRDAPush 
   Appearance      =   0  'Flat
   BackColor       =   &H00FFC0C0&
   Caption         =   "RDA - Push"
   ClientHeight    =   2880
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3525
   ForeColor       =   &H80000008&
   ScaleHeight     =   2880
   ScaleWidth      =   3525
   SIPBehavior     =   1  'vbSIPAutomatic
   Begin VBCE.CommandButton CmdOK 
      Height          =   255
      Left            =   2160
      TabIndex        =   3
      TabStop         =   0   'False
      Top             =   2520
      Width           =   600
      _cx             =   1058
      _cy             =   441
      BackColor       =   12632256
      Caption         =   "确定"
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Style           =   0
   End
   Begin VBCE.TextBox txtConnectString 
      Height          =   1365
      Left            =   960
      TabIndex        =   0
      Top             =   30
      Width           =   2550
      _cx             =   4498
      _cy             =   2408
      BackColor       =   -2147483643
      BorderStyle     =   1
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   -2147483640
      Text            =   ""
      Alignment       =   0
      HideSelection   =   -1  'True
      Locked          =   0   'False
      MaxLength       =   0
      MultiLine       =   -1  'True
      PasswordChar    =   ""
      ScrollBars      =   0
   End
   Begin VBCE.Label Label3 
      Height          =   180
      Left            =   -15
      TabIndex        =   7
      Top             =   135
      Width           =   930
      _cx             =   1640
      _cy             =   318
      AutoSize        =   -1  'True
      BackColor       =   16761024
      BackStyle       =   1
      BorderStyle     =   0
      Caption         =   "连接字符串"
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   -2147483640
      Alignment       =   0
      UseMnemonic     =   -1  'True
      WordWrap        =   0   'False
   End
   Begin VBCE.TextBox txtLocalConnectionString 
      Height          =   570
      Left            =   960
      TabIndex        =   1
      Top             =   1425
      Width           =   2550
      _cx             =   4498
      _cy             =   1005
      BackColor       =   -2147483643
      BorderStyle     =   1
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   -2147483640
      Text            =   ""
      Alignment       =   0
      HideSelection   =   -1  'True
      Locked          =   0   'False
      MaxLength       =   0
      MultiLine       =   -1  'True
      PasswordChar    =   ""
      ScrollBars      =   0
   End
   Begin VBCE.Label Label2 
      Height          =   255
      Left            =   -15
      TabIndex        =   6
      Top             =   1425
      Width           =   795
      _cx             =   1402
      _cy             =   450
      AutoSize        =   0   'False
      BackColor       =   16761024
      BackStyle       =   1
      BorderStyle     =   0
      Caption         =   "本地连接"
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   -2147483640
      Alignment       =   0
      UseMnemonic     =   -1  'True
      WordWrap        =   0   'False
   End
   Begin VBCE.CommandButton cmdCancel 
      Height          =   255
      Left            =   2895
      TabIndex        =   4
      TabStop         =   0   'False
      Top             =   2520
      Width           =   600
      _cx             =   1058
      _cy             =   450
      BackColor       =   12632256
      Caption         =   "取消"
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Style           =   0
   End
   Begin VBCE.Label Label5 
      Height          =   255
      Left            =   15
      TabIndex        =   5
      Top             =   2025
      Width           =   810
      _cx             =   1429
      _cy             =   450
      AutoSize        =   0   'False
      BackColor       =   16761024
      BackStyle       =   1
      BorderStyle     =   0
      Caption         =   "本地表"
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   -2147483640
      Alignment       =   0
      UseMnemonic     =   -1  'True
      WordWrap        =   0   'False
   End
   Begin VBCE.TextBox txtLocalTable 
      Height          =   300
      Left            =   960
      TabIndex        =   2
      Top             =   2025
      Width           =   2550
      _cx             =   4498
      _cy             =   529
      BackColor       =   -2147483643
      BorderStyle     =   1
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   -2147483640
      Text            =   ""
      Alignment       =   0
      HideSelection   =   -1  'True
      Locked          =   0   'False
      MaxLength       =   0
      MultiLine       =   0   'False
      PasswordChar    =   ""
      ScrollBars      =   0
   End
End
Attribute VB_Name = "frmRDAPush"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()

    'Set LocalConnectionString Property
    txtLocalConnectionString.Text = CERDA.LocalConnectionString
    
    'Set RDA Parameters
    txtConnectString.Text = txtRDAConnectString
    txtLocalTable.Text = txtRDALocalTable
End Sub

Private Sub cmdOK_Click()
    
    Dim RDATrackoption As Boolean
    
    RDATrackoption = True
    'Set LocalConnectionString Property
    CERDA.LocalConnectionString = txtLocalConnectionString.Text

    'Set ConnectString and LocalTable Parameters
    txtRDAConnectString = txtConnectString.Text
    txtRDALocalTable = txtLocalTable.Text
    
    ' Invoke the RemoteDataAccess Object
    On Error Resume Next
    CERDA.Push txtRDALocalTable, txtRDAConnectString, RDATrackoption
    
    If CERDA.ErrorRecords.Count <> 0 Then
        ShowErrors CERDA.ErrorRecords, "Push 失败"
    Else
        MsgBox "Push 成功", vbOKOnly, " RDA Push"
    End If
    
    Me.Hide
    frmMain.Show
End Sub

Private Sub cmdCancel_Click()
    Me.Hide
    frmMain.Show
End Sub

⌨️ 快捷键说明

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