Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox - Locating a row from a field value
Message
From
16/01/2008 12:00:22
 
 
To
15/01/2008 14:36:21
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:
01282296
Views:
6
>>>>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. The list is NOT tied to the table, but rather to the cursor, which is basically a lookup.

Then you need to do a Combo.Requery() if you change the cursor.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform