Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populating Combo Box with Data from 2 Fields
Message
 
To
13/04/2005 12:33:30
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01004223
Message ID:
01004224
Views:
18
>How can I populate 1 combo box programmatically with data from 2 different fields (i.e. Unit of issue field and unit of issu description field) so that the combo box popluation looks like the following:
>
>EA - Each
>BX - Box
>etc etc etc....

You can use a SQL rowsource, something like:

select UnitOfIssue + ' - ' + UnitDescription as Units from myUnits into cursor c_units

Or you can set the combo to have 2 columns, and give some widths in the columnwidths property and then the select would look like:

select UnitOfIssue, UnitDescription from myUnits into cursor c_units
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform