Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlight a list entry
Message
De
21/03/1998 10:15:14
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00086193
Message ID:
00086198
Vues:
24
>Hey Allen,
>
>I'm not sure I exactly follow where you're going but I think you might want to take a look at the ListIndex property of the listbox. Setting it to 3 will highlight the 3rd item, setting it to 5 the 5th, and so on. Also, if you would like nothing to be selected you can set ListIndex to 0.
>
>hth,

Thanks Jim,

I just started looking at that property between the time I posted the message and got your reply. However, there's an additional problem. I want the highlighted item to agree with the current record pointer. For example, the user might move the record pointer in a grid on another page. When the page with the list box is selected again, I want the selected item to agree with the current record. I can calculate the correct ListIndex number by counting the number of records that are included in the current filter arguement, then calculating the offset from the first record to the currently selected record and setting the ListIndex to that. It seems like there should be an easier way...

Allen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform