Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Combo box insert problems
I am using VFP 3.0 for Windows.
I am having a strange problem with a combo box. I allow users to choose a value from a combox and the choice is stored directly in a field of a table (the field is specified as the control source). Nothing fancy. One of the values in the combo box is "*OTHER". If this is chosen, a form pops up that allows the users to type in the value they want, and this is stored directly into the field of the table (using the "replace" command).
This works fine for a combo box that is filled using an array, but has problems when the combo box is filled using select statement directly. In both cases the correct value gets put into the field, but when using the "select", the value won't display if it was input by choosing "*OTHER" (which means the value isn't one of the values returned by the select statement).
It seems that if the field that is the control source of the combobox ever has a value that is not one of the values in the select statement ,the value will not display.
Can anyone help?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement