Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding for a List Box Display
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Coding for a List Box Display
Miscellaneous
Thread ID:
00652055
Message ID:
00652055
Views:
52
Hi,

In a combo box I can search for a value by using the following code.
for x = 1 to cboBank.listcount
   cboBank.ListItem = x
   if cboBank.ListItem = gcBank Then
      Exit
   EndIf

Next
When I try to do the same in the ListBox the ListItem does not seem to increment and thus doesn't find the matching value.

What am I doing wrong.

Thanks for your time and patience.

Michael Brennan-White
Send me an email when the shouting stops
Next
Reply
Map
View

Click here to load this message in the networking platform