Description Returns a FRED library object from the specified script file.
Syntax Set mylib = CreateLib ( filename )
Parameters mylib (Object) The returned FRED library object from which methods can be called.
filename As String The full path filename of the script file being returned as an object.
Remarks If there is a problem the function sets an error and returns NULL. When using this command through the COM interface, the document object suffix should be used.
An alternate form of this functionality is provided in BASIC using the ModuleLoad command. An example of using this form is the following, in which the FRED script "winwraptest.frs" has a function called "printit":
Dim fLib As Object Set fLib = ModuleLoad( "C:\temp\winwraptest.frs", False ) fLib.printit()
See Also
Examples
|