Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating an entire form in the FFC Framework
Message
 
À
11/10/1999 16:39:12
Hermann Strijewski
Fast Track Business Solutions
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00275151
Message ID:
00276041
Vues:
24
>I am writing a application with the VFP Foundation Framework Classes.
>
>Here is what I want to do:
>Validate an entire form, e.g. not let the user save the form until all fields are filled in.
>
>However, I haven't been able to figure out what EVENT to use for that purpose, such as LOSTFOCUS, RELEASE etc.

One way to solve this would be to have a function or method that evaluates for completion. All necessary entry points would need to pass through this function via lostfocus, interactivechange. The save button is disabled when the form is blank refreshed, but data entry would trigger:
MyForm.MySaveButton.Enabled=MyForm.MyEntry1>0 AND MyForm.MyEntry2#[ ]

Have an InterActiveChange set a SaveAlertFlag to true. If the user is browsing, the flag would be false, if the user makes a change, set it true, and then test its condition prior to allowing the user to move the pointer.

BTW: What is FFC?
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform