I think I've posted a question like this in the past, but I have searched up and down these forums, and can't find it, so here I am.
Anyways, this code causes a type mismatch:
VB Code:
For i = 1 To Dir1.ListCount lvwDirListings.ListItems.Add , , Dir1.List(i) - Left$(Dir1.List(i), 3) Next i
The reason I'm trying to do this is because it shows "C:\dirname" instead of just "dirname" in the listview.
I need to know how to properly omit text from a string-based variable. I used to know how to do this, but I forgot how.![]()




Reply With Quote