List Collection - ReplaceAt Method
Replace the instance at the specified position with a different object
Member of List Collection (PRIM_LCOL)
Name |
Type |
Data Type |
Description |
Result |
*Result (Optional) |
Reference to the object that was replaced |
|
Item |
*Input |
Item to be replaced |
|
Index |
*Input |
Integer |
Position 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)
All Component Classes
Technical Reference