Description Compiles an embedded script and returns the FRED library object. This function is commonly used to reduce code duplication by allowing one script to call the methods defined in another script.
Syntax elib = GetEmbeddedScriptLib( id )
Parameters elib (Object) Returned FRED library object.
id As Long Embedded script identifier.
Remarks When using this command through the COM interface, the document object suffix should be used. Within any script in which this command is used, the Object must be dimensioned and the library must also be Set (see BASIC Scripting Help). For example,
Dim mylib As Object, sid As Long sid=FindEmbeddedScript("myscript1") Set mylib = GetEmbeddedScriptLib(sid)
At this point, subroutines and functions within the Embedded script can be accessed from the object. In the example below, the embedded script represented by object "mylib" contains a method called "mysubroutine":
mylib.mysubroutine arg1, arg2, arg3
See Also
|