Functions Collection Methods 

The Functions collection object has the following methods:

Functions Collection Methods

Name

Parameters

Return Type

Description

Add

FunctionName

VT_DISPATCH or VT_EMPTY

Creates a Function object and adds it to the collection. If successful, returns the Function object interface. The ‘FunctionName’ parameter is required and is a string (VT_BSTR).

Item

Index

VT_DISPATCH

Returns a Function object from the collection. The ‘Index’ parameter is required and may be a string (VT_BSTR) or an integer (VT_I4).

Remove

Index

VT_EMPTY

Removes a Function object from the collection. Uses an indexing argument in the same way as the Item method.

RemoveAll

 

VT_EMPTY

Removes all Function objects from the collection.

 

For information on SAP collection objects, see: SAP Standard Collection.