Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
d Level Validation VS Validation Procedure
Message
De
01/05/1998 15:24:29
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
28/04/1998 10:45:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00095389
Message ID:
00096375
Vues:
19
>One more tidbit of information. I have field level validations for the various fields where the field can't be empty. I also call a procedure once the 'Save' button is selected which basically duplicates the field level validations in one procedure. This was necessary since the users do not necessarily tab from one field to the next.

A bit on this part: I do all the validations from textbox.localvalid custom method (in class definition). This method gets called from Valid method (when needed) and from the Save button again. When called from save button, if it returns .f. or 0, it sets focus back to the control whose .localvalid returned it. HTH.

I've seen you use Fp2.6; in that case you need to call these validation functions from the Read Valid event (ooops, from Read Valid clause), and if you should like to set focus back to an offending field, you should Return n, where n is the ObjNum(field).

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
Répondre
Fil
Voir

Click here to load this message in the networking platform