Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combox with adding item on user input
Message
De
09/03/1998 09:01:49
 
 
À
08/03/1998 20:24:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00083290
Message ID:
00083344
Vues:
22
>I have made a combox with 3-4 items for selection.
>
>If user type in a new one(out of lists),
>then the combox will add it and set the display value to new one!
>
>This part is completely success.
>
>BUT problem comes as the combox has a controlsource.
>when move to new record, the combox will become Empty display even:
>* In Thisform.refresh, Add code:
>
>Select Orders
>thisform.cboPaymentTerms_1.Value = PaymentTerms_1
>thisform.cboPaymentTerms_1.DisplayValue = PaymentTerms_1

Use Combo.Requery after you change rowsource (e.g. add a record).

>2nd Question, as previous said, In case the value is out-of-list,
>how to make it in list??

Add record to Combo.Rowsource

>3rd Question, if I only know the listitem value, how to get the
>listindex or listItemID of it?

Loop thorugh Combo.List(i) until you find the item.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform