Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combox problem - Autocomplete won't let me add
Message
From
11/01/2000 03:55:11
 
 
To
10/01/2000 15:17:29
Carol Adler
U.S. Army Kwajalein
Apo, Marshall Islands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00315066
Message ID:
00316008
Views:
27
Hi Carol.

>> The user needs to be able to see a list of the companies already in the table, but be able to add a record with a new company name if not already in the table. <<

Long time no see! How's it going? I know nothing about the class you are using, but I have an auto-complete combo class I can e-mail to you if you are interested.

There is also one from FPA September 1998 that Tamar wrote that works great. Then, to add new items, all you do is put in a check like this in the combo's valid:
IF This.ListIndex = 0 AND !EMPTY( This.DisplayValue )
   *** The user typed something in the combo that isn't in the list
   *** Add it to the underlying table
   *** Requery the combo and
   *** Set the combo's value to the newly added item
ENDIF
Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform