Jump to content
Sign in to follow this  

how can i know which item has been selected

Recommended Posts

For 3 questions:

1, a listview includs many ListViewItem s when the programe running ,how can i know which of the ListViewiItem has been selected.

2,how to clear all the listviewitems(not named) in a listview


While Not $rs.eof Or $rs.bof
GUICtrlSetData($List1,"id:"&$RS.fields(0).value&" start time:"&$RS.fields(1).value&"  endtime:"&$RS.fields(2).value&"  used:"&$RS.fields(3).value)
$item1 = GuiCtrlCreateListViewItem($RS.fields(0).value&"|"&$RS.fields(1).value&"|"&$RS.fields(2).value&"|"&$RS.fields(3).value,$list1)

i want to make $item1,$item2,$item3...... for all the recoder. How to name these?

My English is so pool ,sorry!

Edited by cxlaterr

Share this post

Link to post
Share on other sites


would be "bump"

look in the help for _GUICtrlListViewGetSelectedIndices and many other ListView Management Functions in the UDFs section of the help

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

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  

  • Create New...