Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo like selection list.
Message
 
À
20/08/2001 03:00:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00545808
Message ID:
00546051
Vues:
21
There may easily be a simpler way to do this but you could try the following pseudocode:
*Combo.LostFocus

lcNewValue = this.text

if lcNewValue not in the list that populates the combo
  insert into the list
  requery the combo
  set the text of the combo to lcNewValue
endif
Cheers,

Andrew

>The problem that comes is that the control source is set to a field name and what the combo box does, it search for that value in the fieldsource depending upon the boundcolumn sett. In case where we make our own entries that are not found in the list, the combo box will set the displayvalue to an empty string and display nothing!
>
>Anurag


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform