Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo help
Message
De
18/06/2003 07:28:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00801006
Message ID:
00801100
Vues:
8
Hi Brenda.

I have a combobox. The value that is stored is a 2 digit numeric field. What I want displayed is the code with a discreption: '01 - Try Again'.

If you want the code and the description displayed when the combo is closed, the easliest way to do this is to change your RowSOurceType to 3-SQL Statement and Change your RowOSurce to something like this:
SELECT TRANSFORM( Code ) + ' - ' + Description AS MyDisplayValue, Code FROM Mytable ORDER BY Code INTO CURSOR MyCursor NOFILTER
As David said, make sure that you set BoundColumn to 2 and BoundTo to .T.

Personally, if I were you, I would set BoundTo to true in my base combo class. It really should have been true by deault in the VFP base class < s >
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform