|
-
Sep 13th, 2003, 03:48 PM
#1
Thread Starter
Fanatic Member
Type mismatch while trying to omit text [SOLVED]
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.
Last edited by hothead; Sep 13th, 2003 at 07:10 PM.
-
Sep 13th, 2003, 03:59 PM
#2
The picture isn't missing
you mean
Mid(Dir1.List(i),3) 'it's 3 or 4
?
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Sep 13th, 2003, 07:10 PM
#3
Thread Starter
Fanatic Member
Yeah, that'll be it. Thanks.
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
|