AnswerCollection.Remove Method

This method removes an answer from the AnswerCollection.

The use of repeat indexes is not recommended with this method.

Syntax

void Remove ( object index , HotDocs_Online.ansType VarType )

Parameters Description
index This parameter is either the numeric index of the desired answer in the answer collection or the name of the variable. If it is the variable name, the varType parameter is also required.
VarType [optional] This is a variable type from the ansType enumeration for the variable whose answer is desired. It is only required if the index parameter is a string (variable name).
repeatIndex1 [deprecated] First repeat index for the answer to be removed.
repeatIndex2 [deprecated] Second repeat index for the answer to be removed.
repeatIndex3 [deprecated] Third repeat index for the answer to be removed.
repeatIndex4 [deprecated] Fourth repeat index for the answer to be removed.

If the repeat indexes are omitted, the first answer value (-1, -1, -1, -1) will be removed.