Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MulitColumn ListBox Values
Message
From
22/04/1999 14:54:47
 
 
To
13/04/1999 21:37:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00208054
Message ID:
00211245
Views:
22
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform