Use this method to add a file to the collection.
Function Add( LocalData, [NthFile As Long = 1], [OptionalInfo]) As File
Specify a local file path (String) or Binary data (safearray of VT_UI1).
Optional Nth associate files of the InfoObject. The default value is 1.
FileOpOptionalInfo Object or nothing.
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 |