Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I figured out. And this time I'm going to be smart and say what I did, so when I'm searching for this solution again 2 years from now, I won't kick myself for not saying what I did. LOL!
Anyway, I was on the right track with my last paragraph. What I did was make the invisible column the first one. The first column still is bound to the "value", even though it's invisible. So I used that for the key and I'm all set.
Michelle
>I have a listbox that is populated by a cursor. If I click on an item in the listbox, it changes the record pointer in the cursor, which is good. What I can't figure out is how to do the reverse. If I manually change the record in the cursor, how do I get the selection to change?
>
>I did a search here and found that I can change the selection by setting the value property. The problem with that is that I can't guarrantee the values in the listbox are unique. I can't take a chance that it will select the wrong one.
>
>Is there a more reliable link between the listbox and the cursor that I can access? It must know somehow which record to select when you click on an item, so there must be a link. The question is whether or not it is an internal thing that isn't in the interface.
>
>I just thought of another possibility that I'll throw out there if there is no simple solution. Could I make a second, invisible column, and use the value (or some other) property to access that?
>
>Thanks,
>
>Michelle
Précédent
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