Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing values from a list box
Message
From
01/05/2001 11:10:06
 
 
To
01/05/2001 11:00:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00501964
Message ID:
00501973
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
>I have a 2 column listbox populated from an array. The first column is a date and the second is a batch number. When the user double clicks on a value in the list box, I want to store the date AND the batch number to a variable. My problem is that displayvalue only gives me the first column. Is there a way to get the value of the second column (batch number) also.
>
>
  DATE       BATCH
>01/01/01       1
>01/01/01       2
>01/01/01       3
>
>I want to be able to select any ONE of the above by double clicking on it. Right now all I can return is the date so ALL of the above match the memvar.
>
>Thanks in advance

If you set the BOUNDCOLUMN to 2 then the listbox.VALUE will be what you want. The DISPLAYVALUE will remain the same

HTH
Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform