DeleteField Method  
 

Delete the form field and its value from the current form.

Syntax

object.DeleteField( FieldName )

Parameters

FieldName
A string which specifies the name of the field to remove from the form.

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 DeleteField method is used to remove a field and its associated value from the current form.

See Also

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