Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox - Locating a row from a field value
Message
From
15/01/2008 14:35:27
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01281988
Message ID:
01282003
Views:
8
>>I have a field value of "03:45 PM" and those match a value of one of the rows in a ComboBox. How can I make that row display in the ComboBox? I'm using set listindex to 1 in the INIT to make sure it is on the top row, but I need to now have it based on the field value of the current record. Thanks!
>
>You should be able to just set the Combo.Value to something that's in your list.

Ok, there's a different angle that I forgot to mention. The list is populated from a cursor I create, then I replace a value in a table based on what was selected. Now, as I move through a grid of the table, I want the list to reflect the current field value from the table.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform