Sign in Join
FPDoc Onlineexperiment

TCollection.SetLimit procedure

Member of TCollectionIn unit Objects

Set maximum number of elements in the collection.

Declaration

pascal
procedure SetLimit(ALimit: Sw_Integer); virtual

Description

SetLimit sets the maximum number of elements in the collection. ALimit must not be less than Count, and should not be larger than MaxCollectionSize

For an example, see Pack.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.