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 04:14:57
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
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:
00989995
Vues:
28
What I do is set the CBO to Alias, rather than field, I don't know it is a bug, or not, the same error generated if it is rowsourcetype=6

it is only one time thing, you don't need to add it to your tables... however, in case you need to add them, I will do it in LostFocus()
IF this.listindex = 0 OR !EMPTY(this.displayvalue)
   cValue = alltrim(this.displayvalue)
   this.value = cValue
   LOCATE FOR cField = cValue in tableA
   IF !FOUND()
      INSERT tableA () Values ()
   ENDIF
ENDIF
That's what I do in a form/grid
Check it out
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform