Wb-FreeKill 0 Posted March 10, 2005 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 0 Posted March 10, 2005 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 18 Posted March 10, 2005 GuiCtrlDelete ( $ListViewItem )The Above deletes the control, not it's contentsThe Below code will clear all items in the listview controlFunc _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 0 Posted March 10, 2005 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
Lazycat 13 Posted March 10, 2005 The Below code will clear all items in the listview controlThis is right, but have underwater stones with Autoit, read this thread. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Share this post Link to post Share on other sites