Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating an entire form in the FFC Framework
Message
 
To
11/10/1999 16:39:12
Hermann Strijewski
Fast Track Business Solutions
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00275151
Message ID:
00276041
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform