Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User adding in a Combobox
Message
De
05/12/2003 12:58:50
 
 
À
05/12/2003 10:12:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00856254
Message ID:
00856345
Vues:
28
Hi Tracy.

When the user types a new value into the textbox portion of the combo that doesn't exist compar the combo's Value to its DisplayValue. If it is not the same add the code to add the value to the table and requery the combo when your done.

This is will only work when the BoundColumn is column 1. The best way to make this comparison is to use code like this:
IF NOT EMPTY( This.DisplayValue ) AND This.ListIndex = 0
  *** The user has typed something that is not in the list
  APPEND BLANK IN Table_B
  REPLACE MyDescriptiveField WITH This.DisplayValue
  This.Requery()
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform