AddFile

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  The MapForce API > Object Reference > Interfaces > ProjectItem > Methods >

AddFile

Adds the specified document to this project item if it is a valid child. Otherwise, the document is added to the Mapping Folder of the project's root.

 

Signature

AddFile(in i_strFilePath:String) : ProjectItem

 

Parameters

Name

Type

Description

i_strFilePath

String

The path of the document to add.

 

Errors

Error code

Description

1700

The object is no longer valid.

1701

The file name is empty. Invalid address for the return parameter was specified.

1705

Mapping could not be assigned to project. The file does not exist or is not a MapForce mapping. Maybe the file is already assigned to the target folder.


© 2019 Altova GmbH