If the forms are similar you could use Form inheritance or Frames to cut
down on the number of different entry points. A master form with all
the entry points and validation, with inherited forms showing different
layouts.
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
Follow us on Twitter http://twitter.com/salespartner
PO Box 13085
Johnsonville
Wellington
On 2/06/2011 2:07 p.m., Marshland Engineering wrote:
Thanks for the reply.
>Write a procedure for the validation routine in the DataModule. Then
>call it from the OnKeyPress event in each form.
I have about 20 forms and 10 -20 entry points on each form, so
the OnKeyEvent looks like the long way round. The database is only 20
fields long but each form shows a particular set of graphic for the
action so the user enters the data in the correct fields.
What I would like is to attach the validation to the data field in the
DM. That way I can also specify a range for the entry which will be
common to all forms.
Thanks Wallace.
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe