![]() Chapter Contents |
![]() Previous |
![]() Next |
| OLE Automation Class: _new |
| Syntax | |
| Details | |
| Example |
Syntax |
| CALL SEND (OLE-instance, '_new', new-ole-id, init-arg, ole-auto-app); |
| Argument | Type | Description |
|---|---|---|
| new-ole-id | N | returns the SCL object identifier of the newly created OLE automation object instance |
| init-arg |
C | N | specifies the argument that is passed to the _init method for the new object (usually 0) |
| ole-auto-app |
C | specifies the name of the OLE application object (as listed in the system registry) to automate |
| Details |
Before you can use SCL code to refer to an OLE automation object, you must first create an instance of the OLE automation class.
| Example |
This example creates a new OLE automation object and assigns the SCL identifier
exclauto to the new object:
hostcl=loadclass('sashelp.fsp.hauto');
call send (hostcl, '_new', exclauto, 0,
'Excel.Application.5');
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.