Add Method

Applies To   See Also  

Use this method to add a file to the collection.

Syntax
Function Add(
    LocalData,
    [NthFile As Long = 1],
    [OptionalInfo]) As File
Parameters

LocalData

Specify a local file path (String) or Binary data (safearray of VT_UI1).

NthFile

Optional Nth associate files of the InfoObject. The default value is 1.

OptionalInfo

FileOpOptionalInfo Object or nothing.

Remarks

Crystal Enterprise allows an InfoObject to be associated with multiple files, and calls newFile for each of the files.

The Add method checks for existing objects with the same key in the collection. If appropriate, the existing object will be returned or updated; otherwise, an error is returned.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com