Sign in Join
FPDoc Onlineexperiment

TStreamCollection.LoadFromStream procedure

Member of TStreamCollectionpublicIn unit StreamColl

Load the collection from a stream.

Declaration

pascal
procedure LoadFromStream(S: TStream)

Arguments

S

Stream to load collection from.

Description

LoadFromStream loads the collection from the stream S, if the collection was saved using SaveToStream. It reads the number of items in the collection, and then creates and loads the items one by one from the stream.

Errors

An exception may be raised if the stream contains invalid data.

See also

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