Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validation with DBC
Message
 
À
12/04/1998 13:38:23
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00090418
Message ID:
00091723
Vues:
26
>I have a more general form of this problem, and I'm considering a solution along these lines. The general idea is somewhere about what you just said - I've added a LocalValid method to all of my control classes, and it gets called from wherever appropriate. That covers the Valid event (unless it shouldn't fire at all, like when clicking on any other nav button except Save, user pressed escape, or clicked the form's close box), though I plan to move it to LostFocus event; it also gets called from SaveRec method, for each bound control in a row, and as soon as one of them returns empty (this covers both returning .f. and 0), this control will regain focus.
>
>I've found use of sys(1230) or whatever it was, object under mouse, to be a little pointless, because it fires even if mouse is accidentally left over a nav button. I'm trying to do something in commandgroup.gotfocus, to set a form's custom property to .f., so the general Valid routine could know if it should just return .t. or call the .localvalid method. Still working on it.


check sys(1272) -- gives full 'name' of object.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform