Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox - Locating a row from a field value
Message
 
 
To
15/01/2008 14:07:06
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:
01281999
Views:
7
>>>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!
>>
>>What is the combo's rowsourcetype?
>
>Fields, with the RowSource tied to the field. I've got a refresh for the ComboBox in the AfterRowColChange method of the grid, but it doesn't change the value in the ComboBox. When I first come into the form, it is showing the correct value for the first record, not ListIndex = 1, but the actual row for the first record, which is the current one.

Sounds like something too complex for me right now to understand. Sorry, Jay, hopefully Fred will help you.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform