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 15:03:59
 
 
To
15/01/2008 14:37:33
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:
01282021
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!
>>
>>You should be able to just set the Combo.Value to something that's in your list.
>
>Dammit! I hate hitting the reply when I mean to do Update! Keep talking to myself...
>
>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.


How about something like...........

In the AfterRowColChange method of the grid
Thisform.cboxxx.value = EVAL(this.recordsource+".field")
Previous
Reply
Map
View

Click here to load this message in the networking platform