Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox Blues
Message
 
À
25/05/1998 16:37:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00101745
Message ID:
00101757
Vues:
22
>Using VFP5.0. I'm using a multi-page PageFrame form with several ComboBoxes, both separately and in Grids. I am populating the ComboBoxes using fields in free tables. I have two proplems with these ComboBoxes:
>
>1)If the user enters data directly into the box instead of selecting one of the dropdown choices no data is saved to the table.(Isn't this suppose to be the advantage of a ComboBox over a ListBox?)
>
>2)If I add new records to the free table only those entries of a limited length will appear in the ComboBox. For Example: say a free table is a list of countries in which the character length is 30, the initial population has countries with actual lengths of less than 15; now let's say you want to add "The United Arab Emerites" which has a length of 24. You append the entry to the table where it appears and is saved. However, when you try to use the "Country" ComboBox only a blank highlighted box appears. If you shorten the entry to "UAE" or something less than 15 characters, the entry appears as a selection in the ComboBox and will be saved in the table the ComboBox is designed to populate.
>
>Any help on either of these issues will be greatly appreciated.
>TIA --lincoln

1) The ComboBox allows user input but Microsoft left it up to the programmer to provide the code to update the table. Try addinding your code in the LostFocus event or handling each keystroke in the KeyPress event. The Value property will contain the user input.

2) The promplem may be the ComboBox needs to be wider (if you don't see the value when the dropdown is closed) or you need to change the ColumnWidths property (if you don't dsee it when the dropdown is open)
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform