SCL Methods for Automating OLE Objects under Windows |
Invokes a method on an OLE automation object with no return value.
CALL
NOTIFY(OLE-object-name,'_DO_',in-OLE-method<,in-parm...,in-parm>);
|
CALL
SEND(OLE-object-id,'_DO_',in-OLE-method<, in-parm...,in-parm>);
|
Argument |
Character (C) or Numeric (N) |
Description |
in-OLE-method
|
C |
specifies the OLE method name. |
in-parm
|
C or N |
provides a parameter to the OLE
method. |
The _DO_ method invokes a method (with
parameters) that is exposed by an OLE automation server. The number of parameters
(in-parm arguments) needed varies among different
OLE objects and methods. Only methods that have no return value should be
used with the _DO_ method. For methods with return values, use the _COMPUTE_
method.
The following example sends the AboutBox method to an
OLE control, which displays the About Box for the control:
call notify('oleobj', '_DO_', 'AboutBox');
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.