DataAdapters.Item Property
InfoPath Developer Reference |
A read-only property that returns a reference to the specified data adapter object from the DataAdapters collection, based on position or name. Read-only
Version Information
Version Added: InfoPath 2003
Syntax
expression.Item(varIndex)
expression An expression that returns a DataAdapters object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
varIndex | Required | Variant | An expression that specifies the position of a member of the DataAdapters collection. If the argument is a numeric expression, it must be a number from 0 to the value of the collection's Count property minus 1. If the argument is a string expression, it must be the name of a member of the collection. |
Return Value
Object
Remarks
Security Level 0: Can be accessed without restrictions.
Example
In the following example, the Item property of the DataAdapters collection is used to return a reference to a data adapter in the collection:
JScript |
---|
|
Because the Item property is the default property of the DataAdapters collection, it can also be used as follows:
JScript |
---|
|
You can also use the name of a data adapter as the argument to the Item method, as shown in the following example:
JScript |
---|
|
See Also