AddFile Method  
 

Append the contents of the file to the current form.

Syntax

object.AddFile( FieldName, FileName )

Parameters

FieldName
A string which specifies the name of the field to add to the form.
FileName
A string which specifies the name of the file.

Return Value

A value of zero is returned if the operation was successful, otherwise a non-zero error code is returned which indicates the cause of the failure.

Remarks

The AddFile method is used to add the contents of a file to a form created using the CreateForm method. If the field name has already been added to the form, the previous value is deleted and replaced by the new value.

See Also