Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MulitColumn ListBox Values
Message
De
22/04/1999 14:54:47
 
 
À
13/04/1999 21:37:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00208054
Message ID:
00211245
Vues:
21
>Hi all,
>Is there a quick way to get a value from a multicolumn listbox other than the first column? Object.listbox.value returns only the first column value.

Try this...

** GetColVal() ( or whatever )
LParameters tnCol
Local lnOldBound, luRetVal
lnOldBound = this.BoundColumn
this.BoundColumn = tnCol
luRetVal = this.Value
this.BoundColumn = lnOldBound
Return luRetVal

You may want to add some more validation than above (e.g., make sure the desired column exists), but you should get the idea.
HTH
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform