Hi David,
If you find yourself calling controls events, you should move code from the event in the method and call the method from the event and any other places. What code do you've in the texbox Valid/Lostfocus? Did you try to use Debugger to trace where value of the textbox changes?
>I have a problem with textbox value disappearing when tabbing out of a textbox. If the focus shifts using Enter or clicking on another object, then no problem. If I tab out it resets to '0'.
>This only happens if the form is set to edit mode via a popup menu. This calls the click code of a command button.
>If the command button is clicked itself, then no problem, the focus can shift from the textbox using Tab, Enter or click away without the value resetting.
>
>VFP7 SP1
>
>Thanks in advance
>
>David
--sb--