Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validation in conjunction with navigation toolbar in VFP
Message
De
23/11/1999 20:57:44
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
À
23/11/1999 20:47:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00294748
Message ID:
00294775
Vues:
30
Hi Erik,

Thanks a lot. It worked perfectly !!!

Regards,
Gavin...


>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform