Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Mark Buckley
  
 
 
 Mark Buckley
 Tags
Subject: RE: validate form data when using buttonset
Thread ID: 203844 Message ID: 203870 # Views: 25 # Ratings: 0
Version: Visual FoxPro 7 Category: General VFP Topics
Date: Sunday, November 16, 2008 11:09:30 PM         
   


> Hello - I used the forms wizard to create most of the forms in my project. When I run the form I can add and save rows. but when I click the save button it does no data validation. I can set validation rules in the table designer and that will work to a certain extent. I would like more flexibility. Also, I want to make validate choices in the combobox's.
> Thank you in advance for your help.
>
> Mark Buckley

Mark,

You can do your validation in each control.Valid() or .LostFocus(), even when you used the Form Wizard.
If you rather want to do validation on form level (more user-friendly, in my opinion), you may need to overwrite the Wizard classes code - wizbuttons.UpdateRows(), if I remember correctly.

(FWIW, I would not recommend to use that wizard at all)


hth
-Stefan



COMPLETE THREAD
validate form data when using buttonset Posted by Mark Buckley @ 11/16/2008 3:16:24 PM
RE: validate form data when using buttonset Posted by Stefan Wuebbe @ 11/16/2008 11:09:30 PM