<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
The datamodule is the fastest way to do it. Otherwise descend a
class from ttable / tquery or tclientdataset and do it all there.<br>
<br>
Rohit<br>
<br>
<br>
On 2/06/2011 2:07 p.m., Marshland Engineering wrote:
<blockquote cite="mid:994DEE3947644C9192B7E2D87E33C432@Aquilo"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19046">
<style></style>
<div><font face="Arial" size="2">Thanks for the reply. </font></div>
<div> </div>
<div>>Write a procedure for the validation routine in the
DataModule. Then<br>
>call it from the OnKeyPress event in each form.</div>
<div> </div>
<div><font face="Arial" size="2">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. </font></div>
<div> </div>
<div><font face="Arial" size="2">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.</font></div>
<div> </div>
<div><font face="Arial" size="2">Thanks Wallace.</font></div>
<div> </div>
<div> </div>
<div> </div>
<div><font face="Arial" size="2"> </font></div>
<div><br>
</div>
<br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 6172 (20110601) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a moz-do-not-send="true" href="http://www.eset.com">http://www.eset.com</a><br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe
__________ Information from ESET NOD32 Antivirus, version of virus signature database 6172 (20110601) __________
The message was checked by ESET NOD32 Antivirus.
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
Regards<br>
<br>
<b>Rohit Gupta</b><br>
B.E. Elec., M.E., Mem IEEE, Mem IET<br>
Technical Director<br>
Computer Fanatics Ltd<br>
<br>
<b>Tel </b>4892280 <br>
<b>Fax </b>4892290 <br>
<b>Web </b><a href="www.cfl.co.nz">www.cfl.co.nz</a><br>
<hr>
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.</div>
</body>
</html>