Gives access to method or property of an object instance created with OLECREATE.
Syntax
CHGVAR |
VAR(&CMD) VALUE('OLECALL') |
CHGVAR |
VAR(&PARM1) VALUE('"Identifier of instance"') |
CHGVAR |
VAR(&PARM2) VALUE('Method or property to execute') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
ID of the object instance. This ID was returned by a previous call of OLECREATE.
|
Parm2 |
Text of the method or property to apply. Examples : ActiveDocument.SaveAs("C:\MyDoc\Doc1.doc") ActiveDocument.Words.Count
|
RESULT |
At the output, the &RESULT parameter contains a value possibly returned by the called method, or the value of a requested property.
|
The use of this command requires a good Windows OLE programming knowledge as well as a good knowledge of the object to communicate with.
Example
See OLECREATE.
See also