Calling PackageFile routines via InLine Script
PackageFile routines and InLine Script
An E-Prime PackageFile is a pre-written, cohesive set of E-Basic script routines that are grouped together and distributed in a single file. The routines in the PackageFile can be accessed either by dragging a PackageCall object (or shortcut, if available) onto your Procedure or by calling the routine from an InLine script object. Dragging a PackageCall object onto a Procedure is the more common and preferred method. However, you may occasionally need to make a series of calls to PackageFile routines in sequence or mix PackageFile routines with additional E-Basic script; in such cases, calling the routine from an InLine is suggested. In both instances, the PackageFile itself must be added to the experiment in order to access its routines.
Using InLine Script
Calling a PackageFile routine in script is generally the same as calling an E-Basic Subroutine or Function in script. The main difference is that the routine is contained within the PackageFile while the Subroutine or Function is defined in User Script.
PackageFile routines can be invoked directly from an InLine object by combining the name of the PackageFile with an underscore ("_") and then the name of the routine, followed by a comma-separated list of required parameters (if any). For example, to call a routine named SaveImage from a PackageFile named PackageFile1 with a single string parameter value of Image1.bmp, enter the following on an InLIne Object:
The following articles contain further information on scripting and PackageFiles: