Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validation in conjunction with navigation toolbar in VFP
Message
From
23/11/1999 20:47:40
 
 
To
23/11/1999 20:33:31
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00294748
Message ID:
00294767
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform