Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox
Message
From
24/03/2006 09:30:30
 
 
To
24/03/2006 08:51:06
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01107340
Message ID:
01107356
Views:
22
>I have a listBox with two columns and I want to run through this listBox and display the values of both columns. The code i wrote will only display one value, the column that is bound.
>
>Thanks

Randy, are we supposed to guess what your code is like so that we can give you the solution?

By "run through" do you mean "as you select each row in the list" or "You loop through the list"?

Whichever, you can use:
With Thisform.lstMyListBox
  lcDispVal1 = .List( lnSelRow, 1) && or  .List( .ListIndex, 1)
  lcDispVal2 = .List( lnSelRow, 2) && or  .List( .ListIndex, 2)
EndWith

I don't see how the bound prop would come into it.
HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform