Wb-FreeKill Posted March 10, 2005 Share 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? Link to comment Share on other sites More sharing options...
zcoacoaz Posted March 10, 2005 Share 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] Link to comment Share on other sites More sharing options...
GaryFrost Posted March 10, 2005 Share 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. Link to comment Share on other sites More sharing options...
zcoacoaz Posted March 10, 2005 Share 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] Link to comment Share on other sites More sharing options...
Lazycat Posted March 10, 2005 Share 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]) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now