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

Scope

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

Languages: .NET, Java, Visual Basic

Interfaces: Web, Win

Purpose

Return the Item relative position in the collection.   

Syntax

IndexOf(Item)

 

Type Returned:

Number

 

Where:

Item

Variable based on SDT

Description

It returns the relative position, it 0 (zero) if the Item is not in the collection.

 

This method works with the elements references and not with their contents. This implies that if a variable with a list of SDT is received as parameter, and a temporary variable is loaded with an item content, IndexOff will return 0 (empty) since this reference is not within the list. It can be useful only the moment the list is loaded.

 

Note:

This only applies to SDT collections.

See Also

Add method

Item method

Remove method

Clear method

Count property

Structured Data Type Object

More Details

Structured Data Type