Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox problem
Message
De
24/07/1997 11:10:05
 
 
À
24/07/1997 11:07:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00041476
Message ID:
00041481
Vues:
33
>>I have a problem with a ComboBox. I have the folowing properties set, but when the user adds an entry not listed in the RowSource, the data is not saved. What to I have to do so the user can add a new entry and the entry is saved to the table (I don't need it added to the RowSource).
>>
>>ControlSource = helthins_param_view.user_comment
>>RowSource = Cancellation,Death,LOA,Please Refund,Prepayment,Retirement,Return from LOA,Termination
>>RowSourceType = 1
>>Style = 0
>>
>>
>>Jeff
>
>Two things have to be done:
>1. Unbound control, i.e. ControlSource=""
>2. in Combo.LostFocus event:
>If this.displayvalue!=this.value
> Select helthins_param_view
> Replace helthins_param_view.user_comment With This.DisplayValue
>Endif

Sorry, one more add-on:
>2. in Combo.LostFocus event:
Select helthins_param_view
Replace helthins_param_view.user_comment With This.DisplayValue
'IF' is extra, because you have to store any value (from or outside the list).
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform