<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">Item Method - SDT Collection

Scope

Objects: Procedures, Reports, Transactions, Web Panels, Work Panels

Languages: .NET, Java, Visual Basic

Interfaces: Web, Win

Purpose

Returns a reference to an element with ‘Position’ relative position in the collection. 

Syntax

Item(Position)

 

Where:

Position

Relative position in the collection. 

Description

If the position of a collection item is specified, and it is higher than the last one, the program fails. 

It’s not possible to assign a value with this property, so the following code is wrong “&sdt.item(&i) = Att”, to change a value you must first remove it (use the remove method) and then use the add method.

 

Note:

This only applies to SDT collections.

See Also

Add Method

Remove Method

Clear Method

Count Property

Structured Data Type Object

More Details

Structured Data Type