This version of control.tpw has been edited to fix the orphans left by 
inserting an autoinc master record, adding detail records, and cancelling out 
of the master record update form.  Since the templates actually EDIT a new 
record in an autoinc file (they insert, assign the autoinc field, save the 
record immediately to reserve that field, then reopen the record in edit 
mode), an aborted insert is actually a request to _delete_ the record.  What 
this template modification does is execute RIDelete vs. DELETE.

I will not guarantee anything about this template, but I have been using it 
since 1.002 with no ill effect.  _USE AT YOUR OWN RISK._  All changes to the 
original control.tpw are plainly commented, as is all source code generated by 
these edits.

If you decide to use it, be sure to save a copy of the original control.tpw 
before you put it in the template directory.  Enjoy!


Mike Neyman 
73430,2224

******************************************************************************
For you template gurus out there, I realize that what I have done would be 
more efficient if coded into ROUTINEs.  My goal was to change the shipping 
template as little as possible so I could implement any other changes later 
from other versions of control.tpw without having to start over.  If you see 
fit, you can easily <g> alter this to generate the added sections as a 
procedure to better segment the generated code.  Although, as stated above, I 
have had no problems using the template as is.  Comments are appreciated!!
******************************************************************************
