Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combolist reverts to former value when I click on it.
Message
From
16/11/1999 11:44:49
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00286620
Message ID:
00291497
Views:
31
>At this point, I'd start up the debugger, put a break point where the WorkOrder value changes and start testing. Does the value always return to the first item on the list? If so, then it looks like your record pointer is being reset somewhere.

As I said in my first query, I have put break points in where the value changes. If the breakpoint is enabled, then simply breaking and continuing (just prior to or just after) Gotfocus prevents the problem from happening. I have tried breaking on access to the change of the value, but the breaks don't happen. All of the clues suggest that the change is occuring in hidden VFP code.

The value does not revert to the first item in the list. It reverts to the last item I chose by using the mouse to select a member of the drop down list. The problematic sequence is:

1) drop down the list and choose arbitrary value x
2) use the down arrow key to select a new value y
3) click on another control (in this case a simple textbox) on the form
4) click on the combolist...value reverts to x

At stage 1 and 2 I have used breakpoints to verify that all of the combolist state variables (that we have already discussed) are consistent with the value, x or y, respectively, chosen.

>
>Do you have any relations? Filters? What is your buffering?


In this case I'm using pessimistic table buffering. Each time the value changes I issue an explicit tableupdate.
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Previous
Reply
Map
View

Click here to load this message in the networking platform