>Hi,
>
> I'm having a problem with my Brain at the moment. I have a record navigation toolbar which is instantiated whenever a maintenance form is instantiated, the problem is when I change a field in the maintenance form and click on the toolbar the valid event of the field I have just left is not firing. What am I doing wrong ?
>
>Regards,
> Gavin...
You are doing nothing wrong. The problem is that toolbars don't receive focus, and so they don't cause other controls to lose focus. The solution is to cause the control to lose focus with code in the navigation button's click events:
IF TYPE("_SCREEN.ActiveForm.ActiveControl.Name") = "C"
_SCREEN.ActiveForm.ActiveControl.SetFocus()
ENDIF
Calling the control's Setfocus causes it to fire its Lostfocus, therefore writing its value to the underlying table.
Erik Moore
Clientelligence