HD$ AnsGetIter Method  
This function returns a single number value that represents the repeat index (1-based) of the current dialog. This is different than AnsGetRptNdx(function), which is 0-based and returns a complete set of four indexes. As such, AnsGetIter(function) is most useful for non-nested repeats where there is only one index that matters.

 

JavaScript API: Embedded
Assembly: hotdocs.js Version: 1.0.0.0 (1.0.0.0)
Syntax

 
 
JavaScript
 
function AnsGetIter(callback);

Parameters

callback
Type: function
A function to which the 1-based repeat index of the current repeated dialog will be passed.
Remarks

 
If you use this function on a nested, repeated dialog, it only returns the repeat index at the deepest level. For example, if you have one repeated dialog within another repeated dialog, the value it returns would be 1 whether you're on the first repetition of the first repeated dialog, or you're on the first repetition of the second nested dialog. In other words, AnsGetIter(function) always returns the last non-negative number you would get from AnsGetRptNdx(function), plus 1.
See Also

 

Reference