Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo help
Message
From
18/06/2003 07:28:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00801006
Message ID:
00801100
Views:
7
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 >
Previous
Reply
Map
View

Click here to load this message in the networking platform