Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Question
Message
From
05/10/1999 08:00:49
 
 
To
05/10/1999 07:16:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00272616
Message ID:
00272627
Views:
19
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform