Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combox with adding item on user input
Message
From
09/03/1998 09:01:49
 
 
To
08/03/1998 20:24:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00083290
Message ID:
00083344
Views:
26
>I have made a combox with 3-4 items for selection.
>
>If user type in a new one(out of lists),
>then the combox will add it and set the display value to new one!
>
>This part is completely success.
>
>BUT problem comes as the combox has a controlsource.
>when move to new record, the combox will become Empty display even:
>* In Thisform.refresh, Add code:
>
>Select Orders
>thisform.cboPaymentTerms_1.Value = PaymentTerms_1
>thisform.cboPaymentTerms_1.DisplayValue = PaymentTerms_1

Use Combo.Requery after you change rowsource (e.g. add a record).

>2nd Question, as previous said, In case the value is out-of-list,
>how to make it in list??

Add record to Combo.Rowsource

>3rd Question, if I only know the listitem value, how to get the
>listindex or listItemID of it?

Loop thorugh Combo.List(i) until you find the item.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform