|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem > DBWLoadScript |
Loads a vbscript file into the global scope.
Function DBWLoadScript(FileName)
FileName |
name of the script file to load |
TRUE |
if the script file has been properly loaded |
|---|---|
FALSE |
otherwise |
The command looks for script file existence first in shared \LST folder and then in <GlobalParametersPath>
Function doSomethingUseful()
<Some_common_functionality>
End Function
DataEntr.lst
Sub Main()
If (DBWLoadScript("MyLibraryFile.Lib")) Then
doSomethingUseful()
End If
End Sub
Sub Main()
If (DBWLoadScript("MyLibraryFile.Lib") ) Then
doSomethingUseful()
End If
End Sub