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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.