|
| KiXtart Command Reference |
OLEGETSUBOBJECTactionSome methods return handles to sub-objects. OLEGetSubObject is a way to retrieve these handles. syntaxOLEGETSUBOBJECT (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. returnsIf the function succeeds, the return value is 0. If the function fails, the return value represents an error code. |