> Public Property Let NameOfImageIdColumn(ByVal strVal As String) mstrImageIdColumnName = strVal End Property Public Property Get ImageFile(ByVal ImageId As Integer) As String Dim intPos As Integer Dim blnFindId As Boolean Dim i As Integer blnFindId = False For i = 0 To mlngNumberOfFiles - 1 If mlngImageId(i) = ImageId Then intPos = 5 + Len(ImageId) + 3 ImageFile = Right(mstrFileName(i), intPos) 'reformat the location of file. blnFindId = True End If Next i If blnFindId = False Then Err.Clear Err.Raise vbObjectError + 23, "Get ImageFile", "Can't find image file!" End If End Property Public Sub OpenConnection() '*****页码:[1] [2] [3] [4] [5] [6] [7] [8] [9] 第4页、共9页 |