Sign in Join
FPDoc Onlineexperiment

TMemDataset.SetRecNo procedure

Member of TMemDatasetprotectedIn unit MemDs

Sets the value for the RecNo property.

Declaration

pascal
procedure SetRecNo(Value: Integer); override

Arguments

Value

New value for the RecNo property.

Description

SetRecNo is an overridden procedure used to set the value in the RecNo property. SetRecNo is the write access specifier for the property. SetRecNo calls CheckBrowseMode to ensure that the dataset is Active and that Post has been called after changing values in ActiveRecord.

Value contains the record number to assign to the property value. Value must be in the range 1..RecordCount-1. The property value is not updated if Value is not in the range required.

SetRecNo calls Resync to refresh the active record buffer after the property value has been updated.

Use RecNo to read or write the value for the property.

See also

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