Jump to content
Sign in to follow this  
Wb-FreeKill

How to delete all contens og a LIstView?

Recommended Posts

Wb-FreeKill

I made a search "engine", and when i search for some files, it will fill up the listview, but if i press search again, it should delete all contens of it, and then put the new files into it..

So how to delete all contens of a GUICtrlCreateListView?

Share this post


Link to post
Share on other sites
zcoacoaz

GuiCtrlDelete ( $ListViewItem )


[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Share this post


Link to post
Share on other sites
GaryFrost

GuiCtrlDelete ( $ListViewItem )

The Above deletes the control, not it's contents

The Below code will clear all items in the listview control

Func _GUICtrlLVClear($listview)
    Local $LVM_DELETEALLITEMS = 0x1009
    GuiCtrlSendMsg($listview, $LVM_DELETEALLITEMS,0,0)
EndFunc

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
zcoacoaz

i get it.


[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×