Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List box..force to particular item
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00297286
Message ID:
00297334
Vues:
22
>Thanks Marcia.
>
>>Hi Mary-Ann.
>>
>>>> Have a list box that has a field from a view as the source. After adding a record to the view, I want the form to be on the newly added record. How do I force this to happen? <<
>>
>>After the record is added to the view, you have to do a listbox.requery() and then set it's value to the approriate field in the newly added record.
>>
>>Marcia

Just to add: I always use listbox.DisplayValue for this purpose, because .Value and .DisplayValue may be different, and I want to make sure that I set the property which I actually can see in the listbox.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform