最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
一个连接数据库的Class类
时间:2022-06-30 10:13:14 编辑:袖梨 来源:一聚教程网
Option Explicit
'local variable(s) to hold property value(s)
Private lsServer As String 'local copy
Private lsDatabase As String
'local variable(s) to hold property value(s)
Private lsUserName As String 'local copy
Private lsPassword As String 'local copy
Private lsSelectSQL As String 'local copy
'local variable(s) to hold property value(s)
Private lsTable As String 'local copy
Public Property Let Table(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Table = 5
lsTable = vData
End Property
Public Property Get Table() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Table
Table = lsTable
End Property
Public Property Let SelectSQL(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.SelectSQL = 5
lsSelectSQL = vData
End Property
Public Property Get SelectSQL() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.SelectSQL
SelectSQL = lsSelectSQL
End Property
Public Property Let Password(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Password = 5
lsPassword = vData
End Property
Public Property Get Password() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Password
Password = lsPassword
End Property
Public Property Let UserName(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.UserName = 5
lsUserName = vData
End Property
Public Property Get UserName() As String
'used when retrieving value of a property, on the right side of an assignment.
'local variable(s) to hold property value(s)
Private lsServer As String 'local copy
Private lsDatabase As String
'local variable(s) to hold property value(s)
Private lsUserName As String 'local copy
Private lsPassword As String 'local copy
Private lsSelectSQL As String 'local copy
'local variable(s) to hold property value(s)
Private lsTable As String 'local copy
Public Property Let Table(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Table = 5
lsTable = vData
End Property
Public Property Get Table() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Table
Table = lsTable
End Property
Public Property Let SelectSQL(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.SelectSQL = 5
lsSelectSQL = vData
End Property
Public Property Get SelectSQL() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.SelectSQL
SelectSQL = lsSelectSQL
End Property
Public Property Let Password(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Password = 5
lsPassword = vData
End Property
Public Property Get Password() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Password
Password = lsPassword
End Property
Public Property Let UserName(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.UserName = 5
lsUserName = vData
End Property
Public Property Get UserName() As String
'used when retrieving value of a property, on the right side of an assignment.
相关文章
- 王者荣耀侦探能力大测试攻略 王者荣耀侦探能力大测试怎么过 11-22
- 无期迷途主线前瞻兑换码是什么 11-22
- 原神欧洛伦怎么培养 11-22
- 炉石传说网易云音乐联动怎么玩 11-22
- 永劫无间手游确幸转盘怎么样 11-22
- 无期迷途主线前瞻兑换码是什么 无期迷途主线前瞻直播兑换码介绍 11-22