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
Miscellaneous
Thread ID:
00652055
Message ID:
00652178
Views:
13
Hi,

I was grabbing the value from a selected record on one tab to populate text boxes and combo boxes on another page to edit the record.

I was trying to be too clever. when I use the ListItemID property in the for next loop I was able to select the correct item for the list box to display.

Thanks,

Michael

>What're you trying to acomplish?
>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform