Calling this will get the number of records of a template index.
This function can be used only from within of 'OnOutputRecord' context method which is to be called in the "Auto" mode only.
Function GetRecordNumber( index_or_name )
variant index_or_name (optional)
integer - template index (starting from 0)
string - template name
omitted - the first template
integer - the current processed number of records produced by the template