Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox Record Pointer
Message
From
16/12/1999 19:54:23
 
 
To
16/12/1999 10:18:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00304665
Message ID:
00305018
Views:
33
>I have a problem concerning a combo box I have placed on my form. The Data properties for the object is as follows: RowSource=, BoundTo = .t., RowSource Type = "6 - Fields", Bound Column = 1, and Control Source = , Incremental Search = .t.
>
>The problem occurs when the user clicks on it and the then uses the arrow down key to highlight the appropriate record they want and that record shows up in the display, but instead of the user pressing the key or Clicking on the highlighted record, instead they move the mouse pointer vertically up and over the display list (this causes each record along the way to be highlighted, but does not change the display value. Therefore the underlying record pointer on the underlying table is not the same one as the record being displayed.) This problem leads the user to believe they have one value selected, when actually they have have a different value in the database selected that they don't see. This problem was discovered, but not without carefully studying the habits of the user. Does anyone see where I am in error or a work-around for this problem?

You may add this line to Combo.Lostfocus event to make sure that pointer is on right place:
This.Value=This.Value
Obviously, this line looks strange, though it works, and you can always make it even nicer, if your rowsource (table) is indexed, by firing appropriate SEEK(this.value,...) from LostFocus event.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform