Results 1 to 5 of 5

Thread: Remove Item from FileListBox?

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2013
    Posts
    12

    Remove Item from FileListBox?

    Is it possible to remove a file from the FileListBox without actually killing the file?

    I've already used multiple wildcards in the .pattern, however not getting the result I want.

    I want to be able to remove additional files from view in the FileListBox. Is there something like the .removeitem?

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Remove Item from FileListBox?

    Don't think so. Since you do not load the items you can't remove items from it. You can copy the items over to a List box and remove from there what you don't want


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  3. #3
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: Remove Item from FileListBox?

    i concur with jmsrickland.

    filelistbox and drivelistbox are about reporting back the actuality of your environment.

    to mess with that report you need to copy it and change the attributes displayed in the copy.

    you may be able to filter the contents of the file box in some small way, but it will be easier to build the copy and remove what ever from it!

    here to help

  4. #4
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    Re: Remove Item from FileListBox?

    Consider just using a ListBox in the first place and fill it from the strings returned from a loop using Dir$. Dir$ lets you filter up to a point, the Like operator (and Regex although I've never used it) will let you filter further. If filtering fails you then remove specific items as required.

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Remove Item from FileListBox?

    Try the user control code in the first post here.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width