Jump to content

how can i know which item has been selected


cxlaterr
 Share

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

3,

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)
$rs.movenext
WEnd

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

My English is so pool ,sorry!

Edited by cxlaterr
Link to comment
Share on other sites

up!!!!!!!!!!!!!!

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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...