TMemDataset.ReadFieldDefsFromStream procedure
Reads field definitions from the specified stream.
Declaration
procedure ReadFieldDefsFromStream(F: TStream)Arguments
F | Stream used to read field definitions for the dataset. |
Description
ReadFieldDefsFromStream is used to read field definitions for the in-memory dataset from the specified stream. ReadFieldDefsFromStream is used when Open is called and the FileName property has been specified for the dataset.
ReadFieldDefsFromStream calls CheckMarker to ensure the smFieldDefs marker is available at the current position in the stream. An exception is raised when the stream is truncated, or value in does not match the smFieldDefs marker.
ReadFieldDefsFromStream clears any existing field definitions in FieldDefs, and loads field definitions from the stream in F. TFieldDef instances are created and added to FieldDefs for the field definitions. ReadFieldDefsFromStream sets the value in the internal TableIsCreated member to False to indicate that storage has not been allocated for the in-memory dataset.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
