Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What can change this.value between KeyPress and LostFocu
Message
From
01/09/2009 15:16:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01422190
Message ID:
01422205
Views:
45
>Hi
>
>I have noticed a typical behavior in a textbox where a decimal numeric value in THIS.VALUE, say 36.41 changes to 36.00. I have confirmed 36.41 at the very end of KeyPress when I have pressed enter to leave the textbox. At the top of LostFocus() THIS.VALUE is now 36.00 and I can see this happening as soon as I press enter. This control is in a grid column if it matters.
>
>And this does not happen for each and every value of this column / control just a couple values that get truncated (just struck me may be rounded but I need to confirm this behavior).
>
>Please advise.

Can you put a breakpoint, when expression changes? This.Value won't work across methods; you would have to use something like ThisForm...Text1.Value, or even _screen.ActiveForm...Text1.Value
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform