Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop Down Combobox values
Message
From
28/02/2003 15:11:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00759598
Message ID:
00759620
Views:
16
Try something like this.
Thisform.textbox1.value = thisform.combo.list(whateverlistindex, 1)
Thisform.textbox2.value = thisform.combo.list(whateverlistindex, 2)

Basically use the list member of the combo with param 1 being the row and param 2 being the column.

-Joe

>Hi All,
>
>I'd like to store the selected rows first and second column values of a 2 column combobox created with a sql statement to two separate textboxes.
>
>I get the first column value simply using below code in the .valid of the combobox:
>
>This.Textbox.Value = this.value
>
>I can't seem to come up with the correct syntax to get the second column's value to the other textbox.
>
>TIA,
>
>Jim Harvey
Previous
Reply
Map
View

Click here to load this message in the networking platform