Jump to content
Sign in to follow this  
zackrspv

[Solved] Delete List View Item w/o label

Recommended Posts

zackrspv

I know that when you create a list view item, you can do it like:

$item1=GuiCtrlCreateListViewItem("item2|col22|col23",$listview)

But, let's say that you don't specify a label for the listviewitem, because it's a dynamic listview that pulls from the database.

Since the listview itself has say 8 records, but none of them have labels, how can i use GuiCtrlDelete to remoev one from the list?

Edited by zackrspv

-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Share this post


Link to post
Share on other sites
PsaltyDS

I know that when you create a list view item, you can do it like:

$item1=GuiCtrlCreateListViewItem("item2|col22|col23",$listview)

But, let's say that you don't specify a label for the listviewitem, because it's a dynamic listview that pulls from the database.

Since the listview itself has say 8 records, but none of them have labels, how can i use GuiCtrlDelete to remoev one from the list?

I wouldn't. Learn the GuiListView.au3 UDF functions instead, find the item by index, and use _GUICtrlListView_DeleteItem().

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.