The index parameter can either be a number or a string. If it is a number, then the index Answer object in the collection will be retrieved and the vartype parameter will be set to the HDVARTYPE value for the answer. If index is a string, it is interpreted as an Answer name and the Answer object with the name matching index and the type vartype. HotDocs answers are identified by their name and type, so vartype must be set to the correct HDVARTYPE when calling this method with a string for the index parameter.
HotDocs.Answer Item ( object index, ref HotDocs.HDVARTYPE varType )
Parameters | Description |
index | Either a number representing the position of the desired Answer object in the collection, or a string representing the name of the desired Answer object. If index is a string, then vartype must be set correctly also. |
vartype | [optional] When calling Item() with index representing a string, vartype must be the correct HDVARTYPE for the desired Answer object. When the method returns, this parameter will be set to the correct HDVARTYPE for the Answer object in pItem. |
The Answer object requested. If the Answer object could not be located, a new Answer object is created with an Unanswered value.