Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box just won't keep hand entered text
Message
De
24/02/2005 06:20:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00987581
Message ID:
00990013
Vues:
32
in the Valid I keyed

this.value = this.DisplayValue
this.requery()


Try this instead:

Change the RowSourceType of the ComboBox to 0-None and populate it like this in its Init():
WITH This
  .AddItem( [Apples] )
  .AddItem( [Oranges] )
  .AddItem( [Pears] )
ENDWITH
And use this code in its Valid():
WITH This
  IF NOT EMPTY( .DisplayValue ) AND .ListIndex = 0
    .AddItem( .DisplayValue )
    .Requery()
  ENDIF
ENDWITH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform