Version: 2.0
-
Syntax:
- GetObject(PathName, Class)
- PathName
- The optional PathName argument is the full path to and the name
of object file to be accessed. If the PathName argument is not used, you must use the Class
Argument.
- Class
- The optional Class argument is the name of the application
providing the object or the class of the object to create.
The GetObject function is used to access an automation object
in a file and to assign that object to a object variable.
Examples
Code:
<% thepath = "C:\subdirectory\myobject.txt"
%>
<% Set myobject = GetObject(thepath) %>
<% Set myobject = GetObject(thepath, "MyApplication.SomeObject")
%>
Language(s):
VBScript
See Also: