2 回答
TA贡献1818条经验 获得超11个赞
Dim cn As New ADODB.Connection '声明cn 为实例化的ADO链接
Dim rs As New ADODB.Recordset '声明rs 为实例化的ADO记录集
Dim str_Sql As String '声明cstr_sql为字符串型
Dim Chunk() As Byte '声明Chunk() 为byte型 同下
Dim lngLengh As Long
Dim intChunks As Integer
Dim intFragment As Integer
Const ChunkSize = 1000 '声明常量 ChunkSize = 1000
Const lngDataFile = 1 '声明常量 lngDataFile = 1
Private Sub cmdBrowse_Click() '声明过程cmdBrowse_Click()
On Error Resume Next ’出现错误继续执行
With cmdlFilePath 'with为关键字,在此过程中执行以下语句
.Filter = "JPG Files|*.JPG|Bitmaps|*.BMP"
.ShowOpen
txtFilePath.Text = .FileName
End With
End Sub ’过程结束
Private Sub cmdExit_Click() '声明过程cmdExit_Click()
End
End Sub
Private Sub cmdLast_Click()'声明过程cmdLast_Click()
On Error Resume Next
rs.MoveLast '记录集移到表的最后
Call ShowPic '执行showpic函数
End Sub
Private Sub cmdNext_Click() '声明过程cmdNext_Click()
On Error Resume Next
rs.MoveNext '记录集向下移动一条
Call ShowPic '执行showpic函数
End Sub
Private Sub cmdPrev_Click()'声明过程cmdPrev_Click()
On Error Resume Next
rs.MovePrevious '记录集向上移动
可能不太标准就是 大概意思有了
- 2 回答
- 0 关注
- 180 浏览
添加回答
举报