Previous Page | Next Page

SCL Methods for Automating OLE Objects under Windows

_DO_



Invokes a method on an OLE automation object with no return value.
Syntax
Details
Example

Syntax

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.


Details

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.


Example

The following example sends the AboutBox method to an OLE control, which displays the About Box for the control:

    call notify('oleobj', '_DO_', 'AboutBox');

Previous Page | Next Page | Top of Page