Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box Class won't allow typing...
Message
De
01/09/2000 14:31:18
 
 
À
01/09/2000 04:22:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00411624
Message ID:
00411913
Vues:
18
Hi Tim.

>> This is a drop down combo and I can type but as soon
as I resize the grid that contains it or when the valid event
fires....The values are gone.

I can only select items from the list and then it works. <<

Are you saying that the combo goes blank when you type in a value that is not in its RowSource? This is exactly what I would expect to happen. You must take action in the combo's Valid to add the item if it is not yet in the Combo's RowSource. Code something like this:
WITH This
  IF .ListIndex = 0 AND NOT EMPTY( .DisplayValue )
    *** Update the cobo's RowSource here
    .Requery()
  ENDIF
ENDWITH
If what you want is a combo that you can bind to values that are not in its RowSource, check out "1001 Things You Wanted To Know About Visual FoxPro" (Akins, Kramek & Schummer May, 2000) at www.Hentzenwerke.com. There is a combo class that does this in Chapter 5.

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform