import

Examples


The import statement creates a reference to the specified type library file, allowing the current script to access the methods, properties, and other items described in the type library.

Syntax

import library

Parameters

library – A string containing the complete path to the type library file, or the GUID that uniquely identifies the type library. If the file is located in the search path for the current workstation, you don’t need to specify the complete path to the type library file. To use the GUID, the type library must be registered on the current workstation.

Comments

Typically, you would use the import statement only if you were using the COM functionality in a limited number of scripts in your application, or were using pass-through sanScript. In all other cases, we recommend creating a type library reference for the entire dictionary.

If you are specifying a type library based on the GUID, you can also indicate which version of the type library to use. After the GUID in the string for the library parameter, append a comma and the version number of the library. If the specified version of the library can’t be found, a compiler error will occur.


Documentation Feedback