AddFile Method  

Append the contents of the file to the current form.


object.AddFile( FieldName, FileName )


A string which specifies the name of the field to add to the form.
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.


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

AddField Method, AddFile Method, CreateForm Method, DeleteField Method, SubmitForm Method