Autoexec.spt file

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Special Files >

Autoexec.spt file

Description

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.

Example

A typical AUTOEXEC.SPT looks like the following:

.FORM AUTOEXEC.FRM

where AUTOEXEC.FRM is the .FRM file to be executed.

Remarks

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
1: to press automatically the OK 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.