Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveX Listview question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00403471
Message ID:
00403566
Vues:
16
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform