Write scripts for OLE and/or COM Objects
- Last UpdatedAug 12, 2025
- 1 minute read
The following script change must be made from InTouch QuickScript to Application Server QuickScript .NET when using OLE and/or COM objects.
Within InTouch, the function call
OLE_CreateObject(%Name, "ProgramID")
is used to create an instance of an OLE automation object with a starting character for the name of either % or #.
Within Application Server, a standard variable name without the leading % or # is used with a "DIM Name as Object" statement. The variable is then assigned to the OLE/COM object by using the CreateObject("ProgramID") function.
For example, the following code creates a QI Analyst data component object.
InTouch
OLE_CreateObject(%QIDC, "QI.DataComponent");
Application Server
DIM QIDC AS Object;
QIDC = CreateObject("QI.DataComponent");