Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape in a text box.
Message
From
27/04/2000 14:18:41
 
 
To
26/04/2000 21:44:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00363915
Message ID:
00364210
Views:
44
I found what the problem is. It is really a VFP bug. I see it in version 5 and 6. Even in the tastraders I see that behavior.
Follow this instructions:
1. Login to tastraders.
2. Go to Customers Form.
3. Put your cursor into company field.
4. Press the next button on the toolbar couple of times.
5. Remember the current value of the field.
6. Type a few letters.
7. Now hit escape.

As you can see the value changed to the original value at the time you went into that field in the first record. It seems like Foxpro's buffer of the textbox doesn't get refreshed if you are in that field. I don't see this behavior in comboboxes though.


Everybody are affected by this and it was an accident that I noticed this behavior.
I found a solution that I implemented. On all toolbar buttons after doing whatever needed to be done (including buttons like Save, Requery, etc..) , I run this line :
_Screen.ActiveForm.ActiveObject.SetFocus()

What it does is refreshes the Foxpro's internal buffer.
I think everyone should be aware of this issue.

Please reply.
Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform