Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grab column 2 of Combobox drop-down list?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00407356
Message ID:
00407358
Views:
21
>I do I grab the column 2 selected value from my combobox drop-down list?
>
>In the Valid Event of my combobox I have a SELECT as follows:
>
>It seems to only grabs column 1 when I use THIS.Value. I only want to grab column 2, never column 1.
>
>
>SELECT lookup.desc, lookup.mailcode, lookup.code FROM lookup ;
>WHERE lookup.code = 28 AND THIS.Value = ALLT(lookup.mailcode) ;
>INTO ARRAY asubcomplaint
>THISFORM.cboSubComplnt.Requery
>THISFORM.cboSubComplnt.Refresh
>
>
>TIA!

Instead of Value use this.List(this.ListIndex,2)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform