The datamodule is the fastest way to do it. Otherwise descend a class from ttable / tquery or tclientdataset and do it all there.

Rohit


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.



__________ Information from ESET NOD32 Antivirus, version of virus signature database 6172 (20110601) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


_______________________________________________
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


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 6172 (20110601) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



--
Regards

*Rohit Gupta*
B.E. Elec., M.E., Mem IEEE, Mem IET
Technical Director
Computer Fanatics Ltd

*Tel *4892280
*Fax *4892290
*Web *www.cfl.co.nz
------------------------------------------------------------------------
This email and any attachments contain information, which is confidential and may be subject to legal privilege and copyright. If you are not the intended recipient, you must not use, distribute or copy this email or attachments. If you have received this in error, please notify us immediately by return email and then delete this email and any attachments.
_______________________________________________
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

Reply via email to