[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TCollection.AtPut

Set collection item, overwriting an existing value.

Declaration

Source position: objects.pp line 421

procedure TCollection.AtPut(

  Index: Sw_Integer;

  Item: Pointer

);

Description

AtPutsets the element at position Indexin the collection to Item. Any previous value is overwritten.

For an example, see Pack.

Errors

If Indexisn't valid then Erroris called with CoIndexError.