Array Collection - ReplaceAt Method

Replace the instance at the specified position with a different object

Member of Array Collection (PRIM_ACOL)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)PRIM_OBJTReference to the object that was replaced
Item*InputPRIM_OBJTItem to be replaced
Index*InputIntegerPosition of item to be replaced

Details

ReplaceAt replaces the item at the specified index.
 
Attempting to replace an item that does not exist will result in a run time error.

Example

Replacing the 4th item in the collection.
#ReplacedItem <= #Collection.ReplaceAt(#Object 4)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2