|
| KiXtart Command Reference |
OLECALLFUNCactionAccesses a method of an OLE Automation object that returns a value. syntaxOLECALLFUNC (objecthandle, "methodname", typelist, optionalargument1, optionalargument2 , ) parametersObjectHandle The handle of the object you want to access. This handle must have been obtained by a call to OLECreateObject, OLEGetObject, OLEGetSubObject, OLEGetProperty or OLECallFunc. Methodname The name of the method you want to access. TypeList TypeList is a casesensitive series of characters that define the type of each optional argument. Based on the type specified, KiXtart will convert the argument(s) to the correct type before calling the OLE function. This parameter can have the following values:
Optionalargument Optional string value representing an argument for the method. Note : all optional arguments must be specified as a string. The actual type of the argument is determined automatically by the corresponding TypeCharacter in TypeList. returnsA string representing the return value of the function. If the call fails, @ERROR will be set to the relevant error code. |