List Collection - ReplaceAt Method

Replace the instance at the specified position with a different object

Member of List Collection (PRIM_LCOL)


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


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


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

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2