InfoPath Collections

The InfoPath 2003 object model has seven collections, each of which is described briefly here.

The DataObjects Collection

The DataObjects collection contains zero or more DataObject objects. Each DataObject object represents a secondary data source for an InfoPath form.

DataObjects Collection Methods

The DataObjects collection has no methods.

DataObjects Collection Properties

The DataObjects collection has two properties:

  • Count— Read-only. The number of DataObject objects in the DataObjects collection.

  • Item— A reference to a specified DataObject in the DataObjects collection.

In JScript, to assign the first DataObject in the DataObjects collection to a variable myVariable, you would write

 myVariable = XDocument.DataObjects.Item(0); ...

Get Microsoft® Office InfoPath™ 2003 Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.