Sign in Join
FPDoc Onlineexperiment

TMemDataset.SaveDataToStream procedure

Member of TMemDatasetprotectedIn unit MemDs

Saves record data to the specified stream.

Declaration

pascal
procedure SaveDataToStream(F: TStream; SaveData: Boolean); virtual

Arguments

F

Stream used to write record data for the dataset.

SaveData

Indicates if record data is included in the stream.

Description

SaveDataToStream is used to saves record data for the in-memory dataset to the specified stream. F is a TStream descendent used to write the record data for the in-memory dataset. SaveData inidicates if record data is included in the values written to the stream.

When SaveData contains True, the smData marker value is written to the stream followed by an Integer value that represents the size of internal storage allocated for record data. The content of the internal storage is copied to the stream in F, and the FileModified property is set to False.

When SaveData is False, the smData marker value is written to the stream followed by the Integer value 0 (zero) to indicate no record data is present.

Use LoadDataFromStream to load record data for the in-memory dataset.

See also

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