You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

List Collection - InsertBefore Method
InsertBefore adds an item to a collection before a specified item
Member of List Collection (PRIM_LCOL)

Parameters

Name

Type

Data Type

Description

Item

*Input

PRIM_OBJT

Instance to be stored in the collection

Index

*Input

Integer

Index parameter

Details


InsertBefore adds an item to a collection before the specified position.
Specifying an index that does not exist will result in a run time error.

Example


Inserting an existing reference into a collection. The item will be the fourth in the collection.
#Collection.InsertBefore(#Object 4)

See also

All Component Classes
Technical Reference

  • No labels