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, PNA Collections are  '1-based'

 VB Syntax

Object[.Item](n)

Variable

(Type) - Description

Object

Any of the following (collections):

Learn more about collections in the PNA

.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.


Last Modified:

15-Sep-2014

Specify the collections that allow naming

8-Feb-2011

Added GuidedCalibrationPowerSensors

10-Sep-2008

Added CalSets name note