Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I want to stay on a field?
Message
De
19/09/1997 22:18:31
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00049609
Message ID:
00050849
Vues:
54
>OurText.LostFocus() > >SELECT TheValidTable >SEEK THIS.Value >lcNextControl = "THISFORM."+ALLTRIM(TheValidTable.NextGuy) >+".SetFocus()") >&lcNextControl > >This code moves to the correct next control. The code in the LostFocus >will fire ONLY IF the Valid was successful at letting focus move on. Say, what if the user shift-tabs to the previous field? The LostFocus() would fire. In FPD2.6 I've used ReadKey() and in most of the valids called a PassKey() function to decide if user was getting back to the previous field, and had if passkey() return .t. endif in the beginning of most of the valids. Now this should be implemented in quite a different way here. Besides, I'm not sure if ReadKey() still works, since this is not a Read anymore, so first I'd have to redefine the PassKey() function. The question is: how do I know if user backtabbed from a field? The effect I achieved by this is that Valid does not fire if user backtabbed, and I want to reproduce the behavior in VFP.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform