Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capturing values from a list box
Message
De
01/05/2001 11:10:06
 
 
À
01/05/2001 11:00:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00501964
Message ID:
00501973
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform