Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List - selected item
Message
De
04/11/1996 13:02:51
 
 
À
04/11/1996 12:50:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00011428
Message ID:
00011438
Vues:
38
>>How do I programmatically change the selected item on a list control, when I do not know the IndexID?
>>
>>I have a form which contains a list of contacts on the left side, and the detail for the selected contact on the right side (a container object of textfields). I add a new contact by:
>> scatter memvars blank
>> Insert Into SQL statement
>>
>>When the user has completed the record, they click a "Confirm" button that does the TableUpdate.
>>
>>At that point, I want the new contact to be selected in the list. It does appear in the list, as it is bound to the same cursor as the container object fields, but I can't get it to move to the correct field. I do not know the list item # of the new record at that time.
>>
>>TIA.
>
>Probably it will work if you:
>1. Move pointer in cursor to the record you want to select.
>2. Actually nIndex in this case will = recno(), if you don't use index. So reset Selected property using Recno()!

Sorry, it's indexed, that won't work.
Tina Robichaux
Interland, Inc.
www.interland.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform