<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>>Form inheritance or Frames to cut <BR>>down on the number of
different entry points.</DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>The program is set of sequences for machining. A
DBGrid displays the operations.</FONT></DIV>
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>On double clicking the DBGrid operation, opens
a form with the relevant data and the graphics is displayed.
</FONT></DIV>
<DIV><FONT size=2 face=Arial>The data entry points are placed on the graphic at
the point of interest. So each entry form is completely different. </FONT></DIV>
<DIV> </DIV>
<DIV>The machining steps are </DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT size=2 face=Arial>Thread, Rough Turn, Plunge cut, Face etc and
all can be internal as well.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>However for example - each form has a Depth Of Cut
that has a range of 0.02 -2.5 mm. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>My thoughts </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>-Create a new DB aware component that has a maximum
and minimum range and use it on each form. Not ideal as I have to ensure
consistency between all forms. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>-If I use OnValidate in the DM, when is this event
triggered? On Post ?</FONT></DIV>
<DIV><FONT size=2 face=Arial>If so then I could have several errors
occurring at the same time when the data validated, which
error belongs to which field ? </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>If I use OnValidate - when I append a record, will
it run all the OnValidate procedures at once ?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>It looks like I may have to split the operation
into to parts - check that the data entered is in the correct format (Form
Property) and another to check it is in the right range (Database
Property)</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>PS Why Delphi didn't have a DBEditNumeric or
EditNumeric component I'll never know. </FONT></DIV>
<DIV><FONT size=2 face=Arial> </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks Chaps. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>