Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement