Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2nd Column Value in ComboBox
Message
From
26/01/2003 06:50:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00745510
Message ID:
00745512
Views:
17
This message has been marked as the solution to the initial question of the thread.
>I have a 1 column combobox that is built on a 2 column array. I have the firsr array column showing in the combobox. When an item is selected, I need to get the value of th 2nd column of the array.
>
>I thought that:
>
>This.List( This.ListIndex,2 )
>
>would give me this, but it just returns the value in the 1st column.
>
>Can someone tell me what I am missing here?
>
>Mel Cummings

That looks correct to me - I don't know what you are missing.

This requirement usually occurs when the user sees a list of choices, but what has to be saved to the table is a short code. Perhaps this is your requirement.

What I usually do, in these cases, is to change BoundColumn to 2 (the second column).

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform