Chapter Contents

Previous

Next
OLE: _compute

OLE: _compute



Invokes an OLE-supplied method that returns a value


Syntax
Details
Example

Syntax

CALL NOTIFY (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

The _compute method sends an OLE-supplied method and its parameters to an OLE object. 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 methods with no return values, use the _do method.


Example

The following example returns the item in position 2 of an OLE control, storing the result in the character variable item2obj:

   length item2obj $ 200;
   call notify('oleobj', '_compute',
               'GetItem', 2, item2obj);

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, cellobj1);
   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.