Article ID: 140652
Article Last Modified on 2/12/2007
PUBLIC ARRAY aTitle(1)
SELECT DISTINCT(customer.contact) FROM customer ;
INTO ARRAY aTitle
Visual FoxPro 3.x: VFP\Samples\Mainsamp Visual FoxPro 5.x: VFP\Samples Visual FoxPro 6.0: \MSDN98\98VS\1033\Samples Visual FoxPro 7.0,8.0,9.0: \Samples\Data
Customer.Contact
IF Customer.Contact != Thisform.combo1.DisplayValue
REPLACE Customer.Contact WITH Thisform.combo1.DisplayValue
Thisform.Text1.Refresh
SELECT DISTINCT(customer.contact) FROM customer ;
INTO ARRAY aTitle
ENDIF
IF Customer.Contact != Thisform.combo1.DisplayValue
REPLACE Customer.Contact WITH Thisform.combo1.DisplayValue
Thisform.Text1.Refresh
SELECT DISTINCT(customer.contact) FROM customer ;
INTO ARRAY aTitle
ENDIF
thisform.combo1.displayvalue=""
SKIP
ThisForm.Combo1.DisplayValue=Customer.Contact
ThisForm.Refresh
SKIP -1
ThisForm.Combo1.DisplayValue=Customer.Contact
ThisForm.Refresh
139769 How to add a new value to a list of values in a combo box
Keywords: kbcode kbdesigner kbhowto KB140652