Article ID: 142281
Article Last Modified on 9/30/2003
ColumnCount = 2 DisplayValue = "=Company" (without the quotes) RowSource = SELECT cust_id,company FROM CUSTOMER INTO CURSOR mycombo RowSourceType = 3 -SQL StatementNOTE: Code was tested with the RowSourceType set to 3 - SQL Select and 2 - Alias. However, you should be able to implement this logic with other RowSourceTypes. You can eliminate the display of the cust_id by setting the ColumnWidths Property to something like this:
ColumnWidths = "0,100"(Eliminate the quotation marks if you are in the Property Window.)
This.DisplayValue = This.List(This.ListIndex,2)
Additional query words: VFoxWin
Keywords: KB142281