Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox - basic query
Message
De
26/07/2010 14:30:44
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01473935
Message ID:
01473955
Vues:
31
>>Naomi
>>
>>Just quickly trying:
>>
>>REPLACE FRUITS.GROUP WITH THIS.DISPLAYVALUE
>>
>>does indeed do what I wanted.
>>
>>But, out of interest and to satifsy my curiosity, without putting such code into the Valid of the combobox, how would user inputted text into the text portion of a combobox ever be retained in the bound control. I assumed that the bound control would simply accept the value typed in. Does the default behaviour of the valid clause of a combobox automatically check to make sure the typed in value is in the list of supplied values?
>>
>>Thanks for the pointer
>>Barry Sutton
>>
>>
>>
>By default it doesn't get saved. You have to implement code to save the value in the underlying source of the combobox. That code depends on the source type.
>
>I think Marcia posted a version of such combobox, but in my quick searches this is the best result I found.

Thanks - I have always used comboboxes to provide fixed values only and this is the first time I have used it as a true combo-box. I don't recall having seen anywhere that warns about this non-intuitive behaviour. But you are clearly right and thanks to Marcia for providing the necessary class etc.

Tks
Barry Sutton
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform