Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User adding in a Combobox
Message
From
05/12/2003 12:58:50
 
 
To
05/12/2003 10:12:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00856254
Message ID:
00856345
Views:
30
Hi Tracy.

When the user types a new value into the textbox portion of the combo that doesn't exist compar the combo's Value to its DisplayValue. If it is not the same add the code to add the value to the table and requery the combo when your done.

This is will only work when the BoundColumn is column 1. The best way to make this comparison is to use code like this:
IF NOT EMPTY( This.DisplayValue ) AND This.ListIndex = 0
  *** The user has typed something that is not in the list
  APPEND BLANK IN Table_B
  REPLACE MyDescriptiveField WITH This.DisplayValue
  This.Requery()
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform