Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox Return Value
Message
From
23/01/2005 22:04:36
 
 
To
23/01/2005 21:32:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows '98
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979905
Message ID:
00979913
Views:
13
Hi, Leo

>I was try that you suggested. bound column set to 2
>I Try messagebox in lostfocus event, Well done the value is correct return value from field name but why the form is show from field id
>
>I want the form in combo box show from field name when i choose

I see. What you need in this case is to set your RowSource as "Table.name, id" instead. The combo will only show the value in the first column when closed. Notice that in this case you need to get BoundColumn back to 1 if you need the name as value. If you need the id as value, remember to set "BoundTo = .t." also. This will avoid the value getting set to the record #.

Hope this helps,
Previous
Reply
Map
View

Click here to load this message in the networking platform