Write-only

Item Method


Description

Returns an object from the collection of objects.

Notes

  • The order of objects within a collection cannot be assumed.

  • Most, but not all, VNA Collections are  '1-based'

 VB Syntax

Object[.Item](n)

Variable

(Type) - Description

Object

Any of the following (collections):

Learn more about collections in the VNA

.Item

Optional - Item is the default property of a collections object and therefore can be called implicitly. For example, the following two commands are equivalent:

Channels.Item(3).Averaging = 1
Channels(3).Averaging = 1

n

(variant) - Number of the item in the collection.

In addition, the following collections allow you to specify the name of the item as a string:

Return Type

(Object)

Default

Not Applicable

Examples

For i = 1 to Traces.Count 1
 Traces.Item(i).YScale = .5dB
Next i

C++ Syntax

HRESULT Item(VARIANT index, <interface>** pItem)

Interfaces

All listed above.