|
-
August 30th, 2001, 10:55 AM
#1
adding items tolistview
Can't figure out why this don't work. Have looked at examples and still having problem. Here's the code:
Getting error "Type Mismatch"
private Sub AddFileToListView(strFileName as string, FileDate as date)
Dim li as ListItem
set li = ListView1.ListItems.Add(, , strFileName)
With li
.SubItems(1) = strFileName
.SubItems(2) = FileDate
End With
End Sub
I get a file name listed for strFileName, however, I can't get the FileDate to be listed. Any suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|