Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Question
Message
De
05/10/1999 08:00:49
 
 
À
05/10/1999 07:16:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00272616
Message ID:
00272627
Vues:
18
If the combo has RowSourceType set to none and you have a property that contain the next item ID of the combo, here what you can do in the Valid() event of the combo to add the item in the list:
IF NOT AllTrim(This.DisplayValue == AllTrim(This.Value)
   lcValue = This.DisplayValue
   This.AddListItem(This.DisplayValue, This.NewItemID + 1)
   This.Requery()
   This.Value = lcValue
ENDIF
HTH
>If one desires a combobox in which the user can enter a string not in the list and then have that string appear the next time the list is dropped, how would that be coded and in what event or method? I can't seem to find anything that works all the time. BTW, the control source is not saved to a record when the list may be dropped again.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform