Chapter Contents |
Previous |
Next |
_NEW_ |
Syntax | |
Details | |
Example |
Syntax |
CALL SEND(OLE-instance,'_NEW_',new-OLE-id,init-arg,OLE-auto-app); |
Details |
Before you can use SCL code to refer to an OLE Automation server, you must first create an instance of the OLE Automation class.
For more information about the _INIT_ method, see the description of the Object class in SAS/AF Software: FRAME Class Dictionary.
Example |
The following example creates a new instance of an OLE
Automation server and assigns the SCL identifier
exclauto
to the new object. Note that
in this example,
Excel.Application.8
is the identifier for Microsoft
Excel in the system registry:
hostcl=loadclass('sashelp.fsp.hauto'); call send (hostcl, '_NEW_', exclauto, 0, 'Excel.Application.8');
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.