Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning values from a listbox created from an array
Message
De
01/05/2001 11:56:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/05/2001 11:35:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00501985
Message ID:
00501999
Vues:
18
This message has been marked as the solution 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 literal value of the second column (batch number) also.
>
>
>
DATE       BATCH
>01/01/01       A
>01/01/01       B
>01/01/01       C
>01/02/01       A
>01/02/01       B
>
>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 with the same date match the memvar.
>For example if the second item in the list is double clicked, I want to store "01/01/01 B" not just "01/01/01" to the memvar.
>
>Thanks in advance
with myForm.myListbox
lcMyRetval = .List(.Listindex,1)+.list(.ListIndex,2)
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform