Chapter Contents

Previous

Next
OLE Automation Class: _compute

OLE Automation Class: _compute



Invokes an OLE-supplied method that returns a value


Syntax
Details
Example

Syntax

CALL SEND (OLE-object, '_compute', in-OLE-method<, in-parm,...in-parm, out-value>);

Argument Type Description
in-OLE-method
C specifies the OLE-supplied method name
in-parm
C | N provides a parameter to the OLE-supplied method
out-value
C | N contains the value returned by the OLE-supplied method


Details

_compute sends an OLE-supplied method and its parameters to the automation server for execution by the server application. The number of parameters (in-parm arguments) needed varies among different OLE objects and methods. Only OLE-supplied methods that have a return value should be used with the _compute method. For OLE-supplied methods with no return values, use the _do method.


Example

The following example sets the cell value for row 2, column 5 of a spreadsheet OLE automation object to 100:

   call send(oleobj, '_compute', 'Cells',
             2, 5, cellobj);
   call send(cellobj1, '_setProperty',
            'Value', 100);


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.