Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > FilerHelper > Classes > TReaderHelper > Methods

TReaderHelper.ReadPersistent(TPersistent) Method

Scroll Prev Top Next More

Reads the TPersistent object specified by Instance from a stream

Use the ReadPersistent method when you want to read a defined property (specified by TFiler.DefineProperties method) that is a TPersistent from a stream
 

Namespace: FilerHelper

Parameters

Instance

Type: TPersistent

Then, create your reader procedure and writer procedures:

Delphi

procedure TMyComponent.ReadMyProp(Reader: TReader);
 begin
   Reader.ReadPersistent(FMyProp);
 end;
 procedure TMyComponent.WriteMyProp(Writer: TWriter);
 begin
   Writer.WritePersistent(FMyProp);
 end;

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb