Jump to content
Sign in to follow this  
civilcalc

ListView hot item problem

Recommended Posts

civilcalc

I am running beta on vista, I have a few items in my list view.

my problem is the _GUICtrlListView_GetHotItem function, but I keep getting the wrong index value.

sometimes i get -1 and sometimes I get a higher index than the number of values in the listview

CODE
$hot = _GUICtrlListView_GetHotItem($points)

MsgBox(0,"",$hot)

$pointid = _GUICtrlListView_GetItemText($points, $hot, 0)

$pointea = _GUICtrlListView_GetItemText($points, $hot, 1)

$pointno = _GUICtrlListView_GetItemText($points, $hot, 2)

$pointze = _GUICtrlListView_GetItemText($points, $hot, 3)

$pointgr = _GUICtrlListView_GetItemText($points, $hot, 4)

$pointnt = _GUICtrlListView_GetItemText($points, $hot, 5)

Share this post


Link to post
Share on other sites
civilcalc

hmmm, you guys usually post the answer before I finish the question, am I the only one with this problem?

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  

×