Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX Listview question
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00403471
Message ID:
00403566
Views:
15
Kevin,

In the double-click event you can reference the selected item.

THIS.SelectedItem.Index

Thanks,
Dan


>In an MSListView ActiveX control, how do determine the
row number that was double clicked?

The ItemClick method gives you an object reference of the
list item that was clicked as a parameter, from which you
can retrieve the item property, as in:


LPARMAETERS oItem
nIndex = oItem.Index



But the DblClick method does not get any parameters. I'v tried:



This.Index
This.ListIndex
This.ListItems(This.Index)



to no avail

If I use:



This.ListItems(1)


or any other hard coded number, I get an object reference.

So how do I determine the Index/ListIndex if the Double Clicked
item?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform