|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Event Scripts > UserInterface > OnPreviewFileNotFound.LST script file |
If existing in the \LST directory, it is invoked by DBWorks in order to get the two lines of text to be displayed in the preview window when the file is not found.
@DOCUMENT_PATHNAME |
the full path name of the document to be previewed |
TEXT1 |
The upper and bottom text lines to be displayed as error message |
|---|---|
TEXT2 |
.VBSCRIPT
sub main()
DBWInit(TRUE)
docPath = DBWInput("@DOCUMENT_PATHNAME")
DBWOutput "TEXT1", "PREVIEW: " & docPath, ForWriting
DBWOutput "TEXT2", "PREVIEW: not exists!", ForAppending
end sub