|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Special Files > Autoexec.spt file |
It automatically launches a .FRM file when saving a document.
DBWorks looks for the file named AUTOEXEC.SPT in the LST\ sub-directory, and if present, executes it in place of the standard data entry form.
A typical AUTOEXEC.SPT looks like the following:
.FORM AUTOEXEC.FRM
where AUTOEXEC.FRM is the .FRM file to be executed.
The AUTOEXEC.FRM can also output to DBWorks (using the DBWOutput command from Standard Library) the commands:
@OKDATA |
0: to press automatically the Cancel button of the standard data entry form |
Since the AUTOEXEC.FRM is intended to totally replace the standard data entry form, it must be carefully programmed so to correctly display all fields needed by the end user.