Share via


MergeEvent.Count Property

InfoPath Developer Reference

A read-only property that returns a count of the number of forms being merged in a merging operation. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.Count

expression   An expression that returns a MergeEvent object.

Return Value
Long

Remarks

The Count property can be used in combination with the Index property of the MergeEvent object to determine when the last form was merged.

Security Level 0: Can be accessed without restrictions.

Example

This example shows how to use the Index property along with the Count property of an instance of the MergeEvent object to determine if the current form is the last form being merged:

JScript
  var fLast = eventObj.Index + 1 == eventObj.Count;

See Also