Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use combo box bound to field
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01087103
Message ID:
01087280
Vues:
9
>>Try
* Combo Valid
>>IF NOT EMPTY( This.DisplayValue )  ;
>>		AND NOT (ALLTRIM(This.DisplayValue) == ALLTRIM(This.Value))
>>	INSERT INTO mytable VALUES (This.DisplayValue)
>>	This.Value = This.DisplayValue
>>	THIS.Requery()
>>ENDIF
>>
>
>The code above (with some minor corrections) works well. That is, it allows me to enter a value that is not in the cursor MyTable. Thank you very much.
>
>But what I don't understand is why, after I add the new record to the table MyTable (in Valid event), I don't see it (the new record) in the pull-down of the combo?

I don't know why it doesn't show for you. The THIS.Requery() suppouse to take care of that.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform