|
-
Mar 24th, 2000, 03:18 AM
#1
Thread Starter
Addicted Member
How can I delete an (selected) item from a listbox ?
I have a listbox, filled with file-names, I select one of the items and with a commandbutton I will delete (kill or move) this file. What do I have to do ??
Regards, K. Lensen
-
Mar 24th, 2000, 03:29 AM
#2
transcendental analytic
I'm not sure if you are talking about a listbox or a filelistbox.
But for a listbox it's simple:
listbox.removeitem listbox.listindex
For a filelistbox:
Kill listbox.path & listbox.filename
listbox.refresh
-
Mar 24th, 2000, 03:32 AM
#3
New Member
List Box Or File List Box
What Type Of List Box Are You Using To Display The Files;
A List Box, Or File List Box.
-
Mar 24th, 2000, 08:01 PM
#4
Member
For a filelist box use this:
Private Sub Command1_Click()
Kill File1.Path & File1.List(File1.ListIndex)
File1.Refresh
End Sub
Mark
Good Luck!!
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
|