Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populating Combo Box with Data from 2 Fields
Message
 
À
13/04/2005 12:33:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01004223
Message ID:
01004224
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform