Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox Rowsource as Multiple Fields from Same Rec
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658274
Message ID:
00658517
Views:
25
Andrian,

Thanks so much for the advice. I didn't do exactly what you said in your example. But it got me started thinking on the AddItem method. I did the following in the Init of the form and the InteractiveChange of the Combobox that determines the Custid:
WITH ThisForm.pgFrame1.Page2	
		.cboContact.Clear()
		.cboContact.AddItem(custv.contact)
		.cboContact.AddItem(custv.contact2)
		.cboContact.AddItem(custv.contact3)
		.cboContact.AddItem(custv.contact4)
		.cboContact.AddItem(custv.contact5)
		.cboContact.ListItemId = 1
		.cboAddress.Clear()
		.cboAddress.AddItem(custv.address1)
		.cboAddress.AddItem(custv.address2)
		.cboAddress.ListItemId = 1
......etc

ENDWITH
Thanks a million.

Elgin




>I use this: To fill the combo with diferent fields
>
>
*Form.init
>Use Mytable1
>Scan
>  If some condition then && If apply
>    thisform.combo1.AddItem(field1 + " " + field2) &&etc....
>  endif
>endscan
>
>to refill combo2, in combo1.click
>
>
Use Mytable2
>thisform.combo2.clear
>Scan
>  If some condition then && it depends the value selected at combo1
>    thisform.combo2.AddItem(field3)
>  endif
>endscan
>thisform.combo2.refresh
>
>I hope helps you....
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Previous
Reply
Map
View

Click here to load this message in the networking platform