List Collection - RemoveFirst Method

Remove the first item from the collection

Member of List Collection (PRIM_LCOL)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)PRIM_OBJTReference to the object that was removed

Details

RemoveFirst will remove the first item in the collection.
 
Attempting to remove an item that does not exist will result in a run time error.

Example

Removing the 1st item from the collection
#RemovedItem <= #Collection.RemoveFirst
This is the same as writing
#RemovedItem <= #Collection.RemoveAt(1)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020