Jump to content

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...