A script-enabled browser is required for this page to function properly.

OLE2.Add_Arg_Obj

Description

Appends an object argument to an argument list created with OLE2.Create_Arglist.

Syntax


PROCEDURE OLE2.Add_Arg_Obj
   (List IN List_Type,
    value IN Obj_Type);

Parameters

Parameter Description
List A list handle returned from a call to the OLE2.Create_Arglist function.
value The value of an Obj_Type argument to be passed to the OLE2 automation server.

Example


 /* 
** When the OLE interface must accept an unknown object 
** as an argument instead of a pure scalar type, use the 
** Add_Arg_Obj procedure. 
*/
object = OLE2.CREATE_OBJ(obj_name);
listh := OLE2.CREATE_ARGLIST;

OLE2.ADD_ARG_OBJ(listh, object);