Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo-Box Question
Message
De
26/02/1999 15:28:27
 
 
À
26/02/1999 15:20:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00192130
Message ID:
00192134
Vues:
22
>Hi All,
>
>I posted a similar message this morning but with no taker.
>
>As I understand, combo-boxes are supposed to be able to let
>the user to choose from the list OR to enter new data directly
>in the combo-box.
>
>For some reason, when users enter data directly into the combo-box
>the ControlSource variable is not being updated as when they
>select an entry from the drop-dwon list.
>
>Either I must be doing something wrong or I am not understanding
>the purpose of the combo-box control correctly.
>
>Any help would be appreciated!!!

In a case of drop-down combo (Style=0) the text portion entry (not found in the lost portion) is keeping in Combo.DisplayValue property, so you may use in combo.lostfocus event:
IF NOT This.DisplayValue==This.Value && it's the case
*** do something here, e.g. REPLACE myfield With This.Displayvalue, or store it in some property/variable etc.
ENDIF
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform